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 theSystemProp
for customizing the WebSocket's idle timeoutsetMaxBinaryMessageSizeKb
(SystemProp<Integer> maxBinaryMessageSizeKb) Set theSystemProp
for customizing the WebSocket's max binary message sizesetMaxTextMessageSizeKb
(SystemProp<Integer> maxTextMessageSizeKb) Set theSystemProp
for customizing the WebSocket's max text message size
-
Method Details
-
setMaxBinaryMessageSizeKb
public GatewayConnectionContext.Builder setMaxBinaryMessageSizeKb(SystemProp<Integer> maxBinaryMessageSizeKb) Set theSystemProp
for customizing the WebSocket's max binary message size- Parameters:
maxBinaryMessageSizeKb
- theSystemProp
for customizing the WebSocket's max binary message size- Returns:
- this
GatewayConnectionContext.Builder
instance (never null)
-
setMaxTextMessageSizeKb
public GatewayConnectionContext.Builder setMaxTextMessageSizeKb(SystemProp<Integer> maxTextMessageSizeKb) Set theSystemProp
for customizing the WebSocket's max text message size- Parameters:
maxTextMessageSizeKb
- theSystemProp
for customizing the WebSocket's max text message size- Returns:
- this
GatewayConnectionContext.Builder
instance (never null)
-
setIdleTimeoutMs
Set theSystemProp
for customizing the WebSocket's idle timeout- Parameters:
idleTimeoutMs
- theSystemProp
for customizing the WebSocket's idle timeout- Returns:
- this
GatewayConnectionContext.Builder
instance (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
GatewayConnectionContext
instance. Never null.
-