Class StreamingExchangeConfiguration
java.lang.Object
info.bitrich.xchangestream.service.core.StreamingExchangeConfiguration
Configuration for streaming exchange services
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new configuration with default values.StreamingExchangeConfiguration(Duration connectionTimeout, Duration retryDuration, int idleTimeout) Create a new configuration with custom connection timeout and retry duration. -
Method Summary
Modifier and TypeMethodDescriptionint
-
Constructor Details
-
StreamingExchangeConfiguration
public StreamingExchangeConfiguration()Create a new configuration with default values. -
StreamingExchangeConfiguration
public StreamingExchangeConfiguration(Duration connectionTimeout, Duration retryDuration, int idleTimeout) Create a new configuration with custom connection timeout and retry duration.- Parameters:
connectionTimeout- the websocket connection timeoutretryDuration- the duration to wait between retriesidleTimeout- the idle timeout in seconds (0 means no timeout)
-
-
Method Details
-
getConnectionTimeout
-
getRetryDuration
-
getIdleTimeout
public int getIdleTimeout()
-