Class GatewayConnectionContext.Builder
java.lang.Object
com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionContext.Builder
- Enclosing class:
- GatewayConnectionContext
Builder class for customizing a new instance of GatewayConnectionContext using a fluent-style API.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newGatewayConnectionContext.setIdleTimeoutMs(SystemProp<Long> idleTimeoutMs) Set theSystemPropfor customizing the WebSocket's idle timeoutsetMaxBinaryMessageSizeKb(SystemProp<Integer> maxBinaryMessageSizeKb) Set theSystemPropfor customizing the WebSocket's max binary message sizesetMaxTextMessageSizeKb(SystemProp<Integer> maxTextMessageSizeKb) Set theSystemPropfor customizing the WebSocket's max text message size
-
Method Details
-
setMaxBinaryMessageSizeKb
public GatewayConnectionContext.Builder setMaxBinaryMessageSizeKb(SystemProp<Integer> maxBinaryMessageSizeKb) Set theSystemPropfor customizing the WebSocket's max binary message size- Parameters:
maxBinaryMessageSizeKb- theSystemPropfor customizing the WebSocket's max binary message size- Returns:
- this
GatewayConnectionContext.Builderinstance (never null)
-
setMaxTextMessageSizeKb
public GatewayConnectionContext.Builder setMaxTextMessageSizeKb(SystemProp<Integer> maxTextMessageSizeKb) Set theSystemPropfor customizing the WebSocket's max text message size- Parameters:
maxTextMessageSizeKb- theSystemPropfor customizing the WebSocket's max text message size- Returns:
- this
GatewayConnectionContext.Builderinstance (never null)
-
setIdleTimeoutMs
Set theSystemPropfor customizing the WebSocket's idle timeout- Parameters:
idleTimeoutMs- theSystemPropfor customizing the WebSocket's idle timeout- Returns:
- this
GatewayConnectionContext.Builderinstance (never null)
-
build
Build a newGatewayConnectionContext. The GatewayConnectionContext will be created with a new cached worker thread pool and a single threaded scheduler thread.- Returns:
- The new
GatewayConnectionContextinstance. Never null.
-