Class WebSocketClient.ClientConfig
java.lang.Object
io.fluxcapacitor.javaclient.configuration.client.WebSocketClient.ClientConfig
- Enclosing class:
WebSocketClient
Configuration class for creating a
WebSocketClient
.
This configuration defines identifiers, service URLs, compression settings, and session allocations for various
message types. It is immutable and can be modified fluently via its #toBuilder()
method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithGatewaySessions
(MessageType messageType, int count) Returns a newClientConfig
with a modified gateway session count for the specified message type.withTrackingConfig
(MessageType messageType, WebSocketClient.TrackingClientConfig trackingConfig) Returns a newClientConfig
with a modified tracking config for the specified message type.
-
Constructor Details
-
ClientConfig
public ClientConfig()
-
-
Method Details
-
withGatewaySessions
Returns a newClientConfig
with a modified gateway session count for the specified message type. -
withTrackingConfig
public WebSocketClient.ClientConfig withTrackingConfig(MessageType messageType, WebSocketClient.TrackingClientConfig trackingConfig) Returns a newClientConfig
with a modified tracking config for the specified message type.
-