Package org.mockserver.configuration
Class ClientConfiguration
java.lang.Object
org.mockserver.configuration.ClientConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientConfigurationstatic ClientConfigurationclientConfiguration(Configuration configuration) clientNioEventLoopThreadCount(Integer clientNioEventLoopThreadCount) Client Netty worker thread pool size for handling requests and response.controlPlaneJWTAuthenticationJWKSource(String controlPlaneJWTAuthenticationJWKSource) controlPlaneJWTAuthenticationRequired(Boolean controlPlaneJWTAuthenticationRequired) controlPlanePrivateKeyPath(String controlPlanePrivateKeyPath) controlPlaneTLSMutualAuthenticationCAChain(String controlPlaneTLSMutualAuthenticationCAChain) controlPlaneTLSMutualAuthenticationRequired(Boolean controlPlaneTLSMutualAuthenticationRequired) controlPlaneX509CertificatePath(String controlPlaneX509CertificatePath) 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.maxSocketTimeoutInMillis(Long maxSocketTimeoutInMillis) Maximum time in milliseconds allowed for a response from a socketmaxWebSocketExpectations(Integer maxWebSocketExpectations) Maximum number of remote (not the same JVM) method callbacks (i.e. web sockets) registered for expectations.webSocketClientEventLoopThreadCount(Integer webSocketClientEventLoopThreadCount) Client Netty worker thread pool size for handling requests and response.
-
Constructor Details
-
ClientConfiguration
public ClientConfiguration() -
ClientConfiguration
-
-
Method Details
-
clientConfiguration
-
clientConfiguration
-
toServerConfiguration
-
maxWebSocketExpectations
-
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
-
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
-
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
-
maxSocketTimeoutInMillis
Maximum time in milliseconds allowed for a response from a socketDefault is 20,000 ms
- Parameters:
maxSocketTimeoutInMillis- maximum time in milliseconds allowed
-
maxFutureTimeoutInMillis
-
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
-
controlPlaneTLSMutualAuthenticationRequired
public ClientConfiguration controlPlaneTLSMutualAuthenticationRequired(Boolean controlPlaneTLSMutualAuthenticationRequired) -
controlPlaneTLSMutualAuthenticationCAChain
-
controlPlaneTLSMutualAuthenticationCAChain
public ClientConfiguration controlPlaneTLSMutualAuthenticationCAChain(String controlPlaneTLSMutualAuthenticationCAChain) -
controlPlanePrivateKeyPath
-
controlPlanePrivateKeyPath
-
controlPlaneX509CertificatePath
-
controlPlaneX509CertificatePath
-
controlPlaneJWTAuthenticationRequired
-
controlPlaneJWTAuthenticationRequired
public ClientConfiguration controlPlaneJWTAuthenticationRequired(Boolean controlPlaneJWTAuthenticationRequired) -
controlPlaneJWTAuthenticationJWKSource
-
controlPlaneJWTAuthenticationJWKSource
public ClientConfiguration controlPlaneJWTAuthenticationJWKSource(String controlPlaneJWTAuthenticationJWKSource)
-