Package com.kristensoft.kdc
Class KristenHttpClientParameters
- java.lang.Object
-
- com.kristensoft.kdc.Parameters
-
- com.kristensoft.kdc.ClientParameters
-
- com.kristensoft.kdc.KristenHttpClientParameters
-
public class KristenHttpClientParameters extends ClientParameters
Defines configuration parameters for aKristenHttpClient.HTTP client parameters include the server URL, HTTP client event handlers, connection pooling settings, and the configuration inherited from
ClientParameters.Instances are created using
KristenHttpClientParameters.Builder.- Author:
- Charles B. Kozoyed
- See Also:
KristenHttpClient,ClientParameters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKristenHttpClientParameters.BuilderBuildsKristenHttpClientParametersinstances.-
Nested classes/interfaces inherited from class com.kristensoft.kdc.Parameters
Parameters.Defaults
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<KristenHttpClientEventHandler>getEventHandlers()Returns the HTTP client event handlers.BooleangetKeepAlive()Returns the configured HTTP keep-alive setting.IntegergetMaxConnections()Returns the configured maximum number of HTTP connections.StringgetUrlString()Returns the URL used by this HTTP client.-
Methods inherited from class com.kristensoft.kdc.ClientParameters
getClientType, getRemoteAddress, getSyncReplyTimeout
-
Methods inherited from class com.kristensoft.kdc.Parameters
getApiMap, getBindAddress, getConnectionQueuePoolSize, getEncryptionKey, getLatencyReportingInterval, getMaxReceiveBufferSize, getMaxSendBufferSize, getProtocol, getProtocolVersion, getSerializationFormat, getWhiteList, isAutoStart, isCompressed, isCrc, isLatencyModeOn
-
-
-
-
Method Detail
-
getUrlString
public String getUrlString()
Returns the URL used by this HTTP client.- Returns:
- the HTTP client URL
-
getEventHandlers
public List<KristenHttpClientEventHandler> getEventHandlers()
Returns the HTTP client event handlers.- Returns:
- an unmodifiable list of HTTP client event handlers
-
getMaxConnections
public Integer getMaxConnections()
Returns the configured maximum number of HTTP connections.- Returns:
- the maximum number of HTTP connections, or
nullto use the HTTP implementation default
-
getKeepAlive
public Boolean getKeepAlive()
Returns the configured HTTP keep-alive setting.- Returns:
trueif HTTP keep-alive is enabled,falseif disabled, ornullto use the HTTP implementation default
-
-