Package com.sportradar.mbs.sdk
Class MbsSdkConfig
java.lang.Object
com.sportradar.mbs.sdk.MbsSdkConfig
The MbsSdkConfig class represents the configuration for the MBS SDK.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the audience for authentication.Gets the client ID for authentication.Gets the client secret for authentication.Gets the timeout for authentication requests.Gets the delay between authentication retries.Gets the URI of the authentication server.longGets the ID of the operator.Gets the timeout for connecting to the protocol.Gets the timeout for dequeuing messages in the protocol.Gets the timeout for enqueuing messages in the protocol.Gets the maximum send buffer size for the protocol.Gets the number of dispatchers for the protocol.Gets the timeout for receiving responses in the protocol.Gets the number of times to retry the protocol.Gets the unhandled exception handler for the SDK.Gets the grace timeout for WebSocket consumers.Gets the timeout for fetching messages from the WebSocket.Gets the number of connections for the WebSocket.Gets the timeout for receiving messages through the WebSocket.Gets the timeout for reconnecting the WebSocket.Gets the timeout for refreshing the WebSocket connection.Gets the timeout for sending messages through the WebSocket.Gets the URI of the WebSocket server.voidsetAuthRequestTimeout(Duration authRequestTimeout) Sets the timeout for authentication requests.voidsetAuthRetryDelay(Duration authRetryDelay) Sets the delay between authentication retries.voidsetProtocolConnectTimeout(Duration protocolConnectTimeout) Sets the timeout for connecting to the protocol.voidsetProtocolDequeueTimeout(Duration protocolDequeueTimeout) Sets the timeout for dequeuing messages in the protocol.voidsetProtocolEnqueueTimeout(Duration protocolEnqueueTimeout) Sets the timeout for enqueuing messages in the protocol.voidsetProtocolMaxSendBufferSize(Integer protocolMaxSendBufferSize) Sets the maximum send buffer size for the protocol.voidsetProtocolNumberOfDispatchers(Integer protocolNumberOfDispatchers) Sets the number of dispatchers for the protocol.voidsetProtocolReceiveResponseTimeout(Duration protocolReceiveResponseTimeout) Sets the timeout for receiving responses in the protocol.voidsetProtocolRetryCount(Integer protocolRetryCount) Sets the number of times to retry the protocol.voidsetUnhandledExceptionHandler(BiConsumer<MbsSdk, Exception> unhandledExceptionHandler) Sets the unhandled exception handler for the SDK.voidsetWsConsumerGraceTimeout(Duration wsConsumerGraceTimeout) Sets the grace timeout for WebSocket consumers.voidsetWsFetchMessageTimeout(Duration wsFetchMessageTimeout) Sets the timeout for fetching messages from the WebSocket.voidsetWsNumberOfConnections(Integer wsNumberOfConnections) Sets the number of connections for the WebSocket.voidsetWsReceiveMessageTimeout(Duration wsReceiveMessageTimeout) Sets the timeout for receiving messages through the WebSocket.voidsetWsReconnectTimeout(Duration wsReconnectTimeout) Sets the timeout for reconnecting the WebSocket.voidsetWsRefreshConnectionTimeout(Duration wsRefreshConnectionTimeout) Sets the timeout for refreshing the WebSocket connection.voidsetWsSendMessageTimeout(Duration wsSendMessageTimeout) Sets the timeout for sending messages through the WebSocket.
-
Constructor Details
-
MbsSdkConfig
public MbsSdkConfig(URI wsServer, URI authServer, String authClientId, String authClientSecret, String authAudience, long operatorId) Constructs a new instance of the MbsSdkConfig class.- Parameters:
wsServer- The URI of the WebSocket server.authServer- The URI of the authentication server.authClientId- The client ID for authentication.authClientSecret- The client secret for authentication.authAudience- The audience for authentication.operatorId- The ID of the operator.
-
-
Method Details
-
getWsServer
Gets the URI of the WebSocket server.- Returns:
- The URI of the WebSocket server.
-
getAuthServer
Gets the URI of the authentication server.- Returns:
- The URI of the authentication server.
-
getAuthClientId
Gets the client ID for authentication.- Returns:
- The client ID for authentication.
-
getAuthClientSecret
Gets the client secret for authentication.- Returns:
- The client secret for authentication.
-
getAuthAudience
Gets the audience for authentication.- Returns:
- The audience for authentication.
-
getOperatorId
public long getOperatorId()Gets the ID of the operator.- Returns:
- The ID of the operator.
-
getAuthRequestTimeout
Gets the timeout for authentication requests.- Returns:
- The timeout for authentication requests.
-
setAuthRequestTimeout
Sets the timeout for authentication requests.- Parameters:
authRequestTimeout- The timeout for authentication requests to set.
-
getProtocolConnectTimeout
Gets the timeout for connecting to the protocol.- Returns:
- The timeout for connecting to the protocol.
-
setProtocolConnectTimeout
Sets the timeout for connecting to the protocol.- Parameters:
protocolConnectTimeout- The timeout for connecting to the protocol to set.
-
getAuthRetryDelay
Gets the delay between authentication retries.- Returns:
- The delay between authentication retries.
-
setAuthRetryDelay
Sets the delay between authentication retries.- Parameters:
authRetryDelay- The delay between authentication retries to set.
-
getProtocolMaxSendBufferSize
Gets the maximum send buffer size for the protocol.- Returns:
- The maximum send buffer size for the protocol.
-
setProtocolMaxSendBufferSize
Sets the maximum send buffer size for the protocol.- Parameters:
protocolMaxSendBufferSize- The maximum send buffer size for the protocol to set.
-
getProtocolEnqueueTimeout
Gets the timeout for enqueuing messages in the protocol.- Returns:
- The timeout for enqueuing messages in the protocol.
-
setProtocolEnqueueTimeout
Sets the timeout for enqueuing messages in the protocol.- Parameters:
protocolEnqueueTimeout- The timeout for enqueuing messages in the protocol to set.
-
getProtocolDequeueTimeout
Gets the timeout for dequeuing messages in the protocol.- Returns:
- The timeout for dequeuing messages in the protocol.
-
setProtocolDequeueTimeout
Sets the timeout for dequeuing messages in the protocol.- Parameters:
protocolDequeueTimeout- The timeout for dequeuing messages in the protocol to set.
-
getProtocolReceiveResponseTimeout
Gets the timeout for receiving responses in the protocol.- Returns:
- The timeout for receiving responses in the protocol.
-
setProtocolReceiveResponseTimeout
Sets the timeout for receiving responses in the protocol.- Parameters:
protocolReceiveResponseTimeout- The timeout for receiving responses in the protocol to set.
-
getProtocolRetryCount
Gets the number of times to retry the protocol.- Returns:
- The number of times to retry the protocol.
-
setProtocolRetryCount
Sets the number of times to retry the protocol.- Parameters:
protocolRetryCount- The number of times to retry the protocol to set.
-
getProtocolNumberOfDispatchers
Gets the number of dispatchers for the protocol.- Returns:
- The number of dispatchers for the protocol.
-
setProtocolNumberOfDispatchers
Sets the number of dispatchers for the protocol.- Parameters:
protocolNumberOfDispatchers- The number of dispatchers for the protocol to set.
-
getWsReconnectTimeout
Gets the timeout for reconnecting the WebSocket.- Returns:
- The timeout for reconnecting the WebSocket.
-
setWsReconnectTimeout
Sets the timeout for reconnecting the WebSocket.- Parameters:
wsReconnectTimeout- The timeout for reconnecting the WebSocket to set.
-
getWsFetchMessageTimeout
Gets the timeout for fetching messages from the WebSocket.- Returns:
- The timeout for fetching messages from the WebSocket.
-
setWsFetchMessageTimeout
Sets the timeout for fetching messages from the WebSocket.- Parameters:
wsFetchMessageTimeout- The timeout for fetching messages from the WebSocket to set.
-
getWsSendMessageTimeout
Gets the timeout for sending messages through the WebSocket.- Returns:
- The timeout for sending messages through the WebSocket.
-
setWsSendMessageTimeout
Sets the timeout for sending messages through the WebSocket.- Parameters:
wsSendMessageTimeout- The timeout for sending messages through the WebSocket to set.
-
getWsReceiveMessageTimeout
Gets the timeout for receiving messages through the WebSocket.- Returns:
- The timeout for receiving messages through the WebSocket.
-
setWsReceiveMessageTimeout
Sets the timeout for receiving messages through the WebSocket.- Parameters:
wsReceiveMessageTimeout- The timeout for receiving messages through the WebSocket to set.
-
getWsConsumerGraceTimeout
Gets the grace timeout for WebSocket consumers.- Returns:
- The grace timeout for WebSocket consumers.
-
setWsConsumerGraceTimeout
Sets the grace timeout for WebSocket consumers.- Parameters:
wsConsumerGraceTimeout- The grace timeout for WebSocket consumers to set.
-
getWsRefreshConnectionTimeout
Gets the timeout for refreshing the WebSocket connection.- Returns:
- The timeout for refreshing the WebSocket connection.
-
setWsRefreshConnectionTimeout
Sets the timeout for refreshing the WebSocket connection.- Parameters:
wsRefreshConnectionTimeout- The timeout for refreshing the WebSocket connection to set.
-
getWsNumberOfConnections
Gets the number of connections for the WebSocket.- Returns:
- The number of connections for the WebSocket.
-
setWsNumberOfConnections
Sets the number of connections for the WebSocket.- Parameters:
wsNumberOfConnections- The number of connections for the WebSocket to set.
-
getUnhandledExceptionHandler
Gets the unhandled exception handler for the SDK.- Returns:
- The unhandled exception handler for the SDK.
-
setUnhandledExceptionHandler
Sets the unhandled exception handler for the SDK.- Parameters:
unhandledExceptionHandler- The unhandled exception handler for the SDK to set.
-