Class MbsSdkConfig

java.lang.Object
com.sportradar.mbs.sdk.MbsSdkConfig

public class MbsSdkConfig extends Object
The MbsSdkConfig class represents the configuration for the MBS SDK.
  • 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

      public URI getWsServer()
      Gets the URI of the WebSocket server.
      Returns:
      The URI of the WebSocket server.
    • getAuthServer

      public URI getAuthServer()
      Gets the URI of the authentication server.
      Returns:
      The URI of the authentication server.
    • getAuthClientId

      public String getAuthClientId()
      Gets the client ID for authentication.
      Returns:
      The client ID for authentication.
    • getAuthClientSecret

      public String getAuthClientSecret()
      Gets the client secret for authentication.
      Returns:
      The client secret for authentication.
    • getAuthAudience

      public String 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

      public Duration getAuthRequestTimeout()
      Gets the timeout for authentication requests.
      Returns:
      The timeout for authentication requests.
    • setAuthRequestTimeout

      public void setAuthRequestTimeout(Duration authRequestTimeout)
      Sets the timeout for authentication requests.
      Parameters:
      authRequestTimeout - The timeout for authentication requests to set.
    • getProtocolConnectTimeout

      public Duration getProtocolConnectTimeout()
      Gets the timeout for connecting to the protocol.
      Returns:
      The timeout for connecting to the protocol.
    • setProtocolConnectTimeout

      public void setProtocolConnectTimeout(Duration protocolConnectTimeout)
      Sets the timeout for connecting to the protocol.
      Parameters:
      protocolConnectTimeout - The timeout for connecting to the protocol to set.
    • getAuthRetryDelay

      public Duration getAuthRetryDelay()
      Gets the delay between authentication retries.
      Returns:
      The delay between authentication retries.
    • setAuthRetryDelay

      public void setAuthRetryDelay(Duration authRetryDelay)
      Sets the delay between authentication retries.
      Parameters:
      authRetryDelay - The delay between authentication retries to set.
    • getProtocolMaxSendBufferSize

      public Integer getProtocolMaxSendBufferSize()
      Gets the maximum send buffer size for the protocol.
      Returns:
      The maximum send buffer size for the protocol.
    • setProtocolMaxSendBufferSize

      public void setProtocolMaxSendBufferSize(Integer protocolMaxSendBufferSize)
      Sets the maximum send buffer size for the protocol.
      Parameters:
      protocolMaxSendBufferSize - The maximum send buffer size for the protocol to set.
    • getProtocolEnqueueTimeout

      public Duration getProtocolEnqueueTimeout()
      Gets the timeout for enqueuing messages in the protocol.
      Returns:
      The timeout for enqueuing messages in the protocol.
    • setProtocolEnqueueTimeout

      public void setProtocolEnqueueTimeout(Duration protocolEnqueueTimeout)
      Sets the timeout for enqueuing messages in the protocol.
      Parameters:
      protocolEnqueueTimeout - The timeout for enqueuing messages in the protocol to set.
    • getProtocolDequeueTimeout

      public Duration getProtocolDequeueTimeout()
      Gets the timeout for dequeuing messages in the protocol.
      Returns:
      The timeout for dequeuing messages in the protocol.
    • setProtocolDequeueTimeout

      public void setProtocolDequeueTimeout(Duration protocolDequeueTimeout)
      Sets the timeout for dequeuing messages in the protocol.
      Parameters:
      protocolDequeueTimeout - The timeout for dequeuing messages in the protocol to set.
    • getProtocolReceiveResponseTimeout

      public Duration getProtocolReceiveResponseTimeout()
      Gets the timeout for receiving responses in the protocol.
      Returns:
      The timeout for receiving responses in the protocol.
    • setProtocolReceiveResponseTimeout

      public void setProtocolReceiveResponseTimeout(Duration protocolReceiveResponseTimeout)
      Sets the timeout for receiving responses in the protocol.
      Parameters:
      protocolReceiveResponseTimeout - The timeout for receiving responses in the protocol to set.
    • getProtocolRetryCount

      public Integer getProtocolRetryCount()
      Gets the number of times to retry the protocol.
      Returns:
      The number of times to retry the protocol.
    • setProtocolRetryCount

      public void setProtocolRetryCount(Integer protocolRetryCount)
      Sets the number of times to retry the protocol.
      Parameters:
      protocolRetryCount - The number of times to retry the protocol to set.
    • getProtocolNumberOfDispatchers

      public Integer getProtocolNumberOfDispatchers()
      Gets the number of dispatchers for the protocol.
      Returns:
      The number of dispatchers for the protocol.
    • setProtocolNumberOfDispatchers

      public void setProtocolNumberOfDispatchers(Integer protocolNumberOfDispatchers)
      Sets the number of dispatchers for the protocol.
      Parameters:
      protocolNumberOfDispatchers - The number of dispatchers for the protocol to set.
    • getWsReconnectTimeout

      public Duration getWsReconnectTimeout()
      Gets the timeout for reconnecting the WebSocket.
      Returns:
      The timeout for reconnecting the WebSocket.
    • setWsReconnectTimeout

      public void setWsReconnectTimeout(Duration wsReconnectTimeout)
      Sets the timeout for reconnecting the WebSocket.
      Parameters:
      wsReconnectTimeout - The timeout for reconnecting the WebSocket to set.
    • getWsFetchMessageTimeout

      public Duration getWsFetchMessageTimeout()
      Gets the timeout for fetching messages from the WebSocket.
      Returns:
      The timeout for fetching messages from the WebSocket.
    • setWsFetchMessageTimeout

      public void setWsFetchMessageTimeout(Duration wsFetchMessageTimeout)
      Sets the timeout for fetching messages from the WebSocket.
      Parameters:
      wsFetchMessageTimeout - The timeout for fetching messages from the WebSocket to set.
    • getWsSendMessageTimeout

      public Duration getWsSendMessageTimeout()
      Gets the timeout for sending messages through the WebSocket.
      Returns:
      The timeout for sending messages through the WebSocket.
    • setWsSendMessageTimeout

      public void setWsSendMessageTimeout(Duration wsSendMessageTimeout)
      Sets the timeout for sending messages through the WebSocket.
      Parameters:
      wsSendMessageTimeout - The timeout for sending messages through the WebSocket to set.
    • getWsReceiveMessageTimeout

      public Duration getWsReceiveMessageTimeout()
      Gets the timeout for receiving messages through the WebSocket.
      Returns:
      The timeout for receiving messages through the WebSocket.
    • setWsReceiveMessageTimeout

      public void setWsReceiveMessageTimeout(Duration wsReceiveMessageTimeout)
      Sets the timeout for receiving messages through the WebSocket.
      Parameters:
      wsReceiveMessageTimeout - The timeout for receiving messages through the WebSocket to set.
    • getWsConsumerGraceTimeout

      public Duration getWsConsumerGraceTimeout()
      Gets the grace timeout for WebSocket consumers.
      Returns:
      The grace timeout for WebSocket consumers.
    • setWsConsumerGraceTimeout

      public void setWsConsumerGraceTimeout(Duration wsConsumerGraceTimeout)
      Sets the grace timeout for WebSocket consumers.
      Parameters:
      wsConsumerGraceTimeout - The grace timeout for WebSocket consumers to set.
    • getWsRefreshConnectionTimeout

      public Duration getWsRefreshConnectionTimeout()
      Gets the timeout for refreshing the WebSocket connection.
      Returns:
      The timeout for refreshing the WebSocket connection.
    • setWsRefreshConnectionTimeout

      public void setWsRefreshConnectionTimeout(Duration wsRefreshConnectionTimeout)
      Sets the timeout for refreshing the WebSocket connection.
      Parameters:
      wsRefreshConnectionTimeout - The timeout for refreshing the WebSocket connection to set.
    • getWsNumberOfConnections

      public Integer getWsNumberOfConnections()
      Gets the number of connections for the WebSocket.
      Returns:
      The number of connections for the WebSocket.
    • setWsNumberOfConnections

      public void setWsNumberOfConnections(Integer wsNumberOfConnections)
      Sets the number of connections for the WebSocket.
      Parameters:
      wsNumberOfConnections - The number of connections for the WebSocket to set.
    • getUnhandledExceptionHandler

      public BiConsumer<MbsSdk,Exception> getUnhandledExceptionHandler()
      Gets the unhandled exception handler for the SDK.
      Returns:
      The unhandled exception handler for the SDK.
    • setUnhandledExceptionHandler

      public void setUnhandledExceptionHandler(BiConsumer<MbsSdk,Exception> unhandledExceptionHandler)
      Sets the unhandled exception handler for the SDK.
      Parameters:
      unhandledExceptionHandler - The unhandled exception handler for the SDK to set.