Class ClientConfiguration


  • public class ClientConfiguration
    extends Object
    • Constructor Detail

      • ClientConfiguration

        public ClientConfiguration()
      • ClientConfiguration

        public ClientConfiguration​(Configuration serverConfiguration)
    • Method Detail

      • toServerConfiguration

        public Configuration toServerConfiguration()
      • maxWebSocketExpectations

        public Integer maxWebSocketExpectations()
      • maxWebSocketExpectations

        public ClientConfiguration maxWebSocketExpectations​(Integer maxWebSocketExpectations)

        Maximum number of remote (not the same JVM) method callbacks (i.e. web sockets) registered for expectations. The web socket client registry entries are stored in a circular queue so once this limit is reach the oldest are overwritten.

        The default is 1500

        Parameters:
        maxWebSocketExpectations - maximum number of method callbacks (i.e. web sockets) registered for expectations
      • webSocketClientEventLoopThreadCount

        public Integer webSocketClientEventLoopThreadCount()
      • webSocketClientEventLoopThreadCount

        public ClientConfiguration webSocketClientEventLoopThreadCount​(Integer webSocketClientEventLoopThreadCount)

        Client Netty worker thread pool size for handling requests and response. These threads handle deserializing and serialising HTTP requests and responses and some other fast logic.

        Default is 5 threads

        Parameters:
        webSocketClientEventLoopThreadCount - Client Netty worker thread pool size
      • clientNioEventLoopThreadCount

        public Integer clientNioEventLoopThreadCount()
      • clientNioEventLoopThreadCount

        public ClientConfiguration clientNioEventLoopThreadCount​(Integer clientNioEventLoopThreadCount)

        Client Netty worker thread pool size for handling requests and response. These threads handle deserializing and serialising HTTP requests and responses and some other fast logic.

        Default is 5 threads

        Parameters:
        clientNioEventLoopThreadCount - Client Netty worker thread pool size
      • maxSocketTimeoutInMillis

        public Long maxSocketTimeoutInMillis()
      • maxSocketTimeoutInMillis

        public ClientConfiguration maxSocketTimeoutInMillis​(Long maxSocketTimeoutInMillis)
        Maximum time in milliseconds allowed for a response from a socket

        Default is 20,000 ms

        Parameters:
        maxSocketTimeoutInMillis - maximum time in milliseconds allowed
      • maxFutureTimeoutInMillis

        public Long maxFutureTimeoutInMillis()
      • maxFutureTimeoutInMillis

        public ClientConfiguration maxFutureTimeoutInMillis​(Long maxFutureTimeoutInMillis)
        Maximum time allowed in milliseconds for any future to wait, for example when waiting for a response over a web socket callback.

        Default is 60,000 ms

        Parameters:
        maxFutureTimeoutInMillis - maximum time allowed in milliseconds
      • controlPlaneTLSMutualAuthenticationRequired

        public Boolean controlPlaneTLSMutualAuthenticationRequired()
      • controlPlaneTLSMutualAuthenticationRequired

        public ClientConfiguration controlPlaneTLSMutualAuthenticationRequired​(Boolean controlPlaneTLSMutualAuthenticationRequired)
      • controlPlaneTLSMutualAuthenticationCAChain

        public String controlPlaneTLSMutualAuthenticationCAChain()
      • controlPlaneTLSMutualAuthenticationCAChain

        public ClientConfiguration controlPlaneTLSMutualAuthenticationCAChain​(String controlPlaneTLSMutualAuthenticationCAChain)
      • controlPlanePrivateKeyPath

        public String controlPlanePrivateKeyPath()
      • controlPlaneX509CertificatePath

        public String controlPlaneX509CertificatePath()
      • controlPlaneX509CertificatePath

        public ClientConfiguration controlPlaneX509CertificatePath​(String controlPlaneX509CertificatePath)
      • controlPlaneJWTAuthenticationRequired

        public Boolean controlPlaneJWTAuthenticationRequired()
      • controlPlaneJWTAuthenticationRequired

        public ClientConfiguration controlPlaneJWTAuthenticationRequired​(Boolean controlPlaneJWTAuthenticationRequired)
      • controlPlaneJWTAuthenticationJWKSource

        public String controlPlaneJWTAuthenticationJWKSource()
      • controlPlaneJWTAuthenticationJWKSource

        public ClientConfiguration controlPlaneJWTAuthenticationJWKSource​(String controlPlaneJWTAuthenticationJWKSource)