Package com.kristensoft.kdc
Class KristenHttpServerParameters
- java.lang.Object
-
- com.kristensoft.kdc.Parameters
-
- com.kristensoft.kdc.ServerParameters
-
- com.kristensoft.kdc.KristenHttpServerParameters
-
public class KristenHttpServerParameters extends ServerParameters
Defines configuration parameters for aKristenHttpServer.HTTP server parameters include the URI path, request-processing thread pool settings, and event handlers used by the server.
Instances are created using
KristenHttpServerParameters.Builder.- Author:
- Charles B. Kozoyed
- See Also:
KristenHttpServer,KristenHttpServerEventHandler,ServerParameters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKristenHttpServerParameters.BuilderBuildsKristenHttpServerParametersinstances.-
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 intgetCorePoolSize()Returns the core number of threads used to process HTTP requests.List<KristenHttpServerEventHandler>getEventHandlers()Returns the HTTP server event handlers.longgetKeepAliveTime()Returns the amount of time excess idle threads may remain alive.intgetMaximumPoolSize()Returns the maximum number of threads used to process HTTP requests.TimeUnitgetTimeUnit()Returns the time unit used for the thread keep-alive time.StringgetUriPath()Returns the URI path used for the default HTTP context.-
Methods inherited from class com.kristensoft.kdc.ServerParameters
getBacklog
-
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
-
getUriPath
public String getUriPath()
Returns the URI path used for the default HTTP context.- Returns:
- the URI path
-
getCorePoolSize
public int getCorePoolSize()
Returns the core number of threads used to process HTTP requests.- Returns:
- the core thread pool size
-
getMaximumPoolSize
public int getMaximumPoolSize()
Returns the maximum number of threads used to process HTTP requests.- Returns:
- the maximum thread pool size
-
getKeepAliveTime
public long getKeepAliveTime()
Returns the amount of time excess idle threads may remain alive.- Returns:
- the thread keep-alive time
-
getTimeUnit
public TimeUnit getTimeUnit()
Returns the time unit used for the thread keep-alive time.- Returns:
- the keep-alive time unit
-
getEventHandlers
public List<KristenHttpServerEventHandler> getEventHandlers()
Returns the HTTP server event handlers.- Returns:
- an unmodifiable list of HTTP server event handlers
-
-