public class ClientConfiguration extends Object
Constructor and Description |
---|
ClientConfiguration() |
ClientConfiguration(Configuration serverConfiguration) |
public ClientConfiguration()
public ClientConfiguration(Configuration serverConfiguration)
public static ClientConfiguration clientConfiguration()
public static ClientConfiguration clientConfiguration(Configuration configuration)
public Configuration toServerConfiguration()
public Integer 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
maxWebSocketExpectations
- maximum number of method callbacks (i.e. web sockets) registered for expectationspublic Integer 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
webSocketClientEventLoopThreadCount
- Client Netty worker thread pool sizepublic Integer 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
clientNioEventLoopThreadCount
- Client Netty worker thread pool sizepublic Long maxSocketTimeoutInMillis()
public ClientConfiguration maxSocketTimeoutInMillis(Long maxSocketTimeoutInMillis)
Default is 20,000 ms
maxSocketTimeoutInMillis
- maximum time in milliseconds allowedpublic Long maxFutureTimeoutInMillis()
public ClientConfiguration maxFutureTimeoutInMillis(Long maxFutureTimeoutInMillis)
Default is 60,000 ms
maxFutureTimeoutInMillis
- maximum time allowed in millisecondspublic Boolean controlPlaneTLSMutualAuthenticationRequired()
public ClientConfiguration controlPlaneTLSMutualAuthenticationRequired(Boolean controlPlaneTLSMutualAuthenticationRequired)
public String controlPlaneTLSMutualAuthenticationCAChain()
public ClientConfiguration controlPlaneTLSMutualAuthenticationCAChain(String controlPlaneTLSMutualAuthenticationCAChain)
public String controlPlanePrivateKeyPath()
public ClientConfiguration controlPlanePrivateKeyPath(String controlPlanePrivateKeyPath)
public String controlPlaneX509CertificatePath()
public ClientConfiguration controlPlaneX509CertificatePath(String controlPlaneX509CertificatePath)
public Boolean controlPlaneJWTAuthenticationRequired()
public ClientConfiguration controlPlaneJWTAuthenticationRequired(Boolean controlPlaneJWTAuthenticationRequired)
public String controlPlaneJWTAuthenticationJWKSource()
public ClientConfiguration controlPlaneJWTAuthenticationJWKSource(String controlPlaneJWTAuthenticationJWKSource)
Copyright © 2022. All rights reserved.