APIdia Launch Partner
Top Description Fields Constructors Methods
sun.net.httpserver

pack-priv Class ServerConfig

extends Object
Class Inheritance
Imports
java.lang.System.Logger, .System.Logger.Level

Parameters that users will not likely need to set but are useful for debugging

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final long
private static final long
private static final int
private static final int
private static final int
private static final int
private static final int
private static final long
private static final long
private static final long
private static final long
private static final long
private static final long
private static final int
private static final int
private static final int
private static final int
private static final long
private static final long
private static final boolean
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
pack-priv static boolean
pack-priv static long
pack-priv static long

Returns:

Returns the maximum duration, in milli seconds, a connection can be idle
getIdleIntervalMillis
()

Returns the maximum duration, in milli seconds, a connection can be idle.

pack-priv static long

Returns:

Returns the schedule, in milli seconds, for the timer task that is responsible for managing the idle connections
getIdleTimerScheduleMillis
()

Returns the schedule, in milli seconds, for the timer task that is responsible for managing the idle connections.

pack-priv static int
getMaxConnections()

Returns: Returns the maximum number of connections that can be open at any given time.

pack-priv static int
getMaxIdleConnections()

Returns: Returns the maximum number of connections that can be idle.

pack-priv static int
pack-priv static int
pack-priv static long
getMaxReqTime()

Returns: Returns the maximum amount of time the server will wait for the request to be read completely.

pack-priv static long
getMaxRspTime()

Returns: Returns the maximum amount of time the server will wait for the response to be generated for a request that is being processed.

pack-priv static long

Returns:

Returns the timer schedule of the task that's responsible for timing out request/response that have been running longer than any configured timeout
getReqRspTimerScheduleMillis
()

Returns the timer schedule of the task that's responsible for timing out request/response that have been running longer than any configured timeout.

pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

debugback to summary
private static final boolean debug
DEFAULT_DRAIN_AMOUNTback to summary
private static final long DEFAULT_DRAIN_AMOUNT
DEFAULT_IDLE_INTERVAL_IN_SECSback to summary
private static final long DEFAULT_IDLE_INTERVAL_IN_SECS
DEFAULT_IDLE_TIMER_SCHEDULE_MILLISback to summary
private static final int DEFAULT_IDLE_TIMER_SCHEDULE_MILLIS
DEFAULT_MAX_CONNECTIONSback to summary
private static final int DEFAULT_MAX_CONNECTIONS
DEFAULT_MAX_IDLE_CONNECTIONSback to summary
private static final int DEFAULT_MAX_IDLE_CONNECTIONS
DEFAULT_MAX_REQ_HEADER_SIZEback to summary
private static final int DEFAULT_MAX_REQ_HEADER_SIZE
DEFAULT_MAX_REQ_HEADERSback to summary
private static final int DEFAULT_MAX_REQ_HEADERS
DEFAULT_MAX_REQ_TIMEback to summary
private static final long DEFAULT_MAX_REQ_TIME
DEFAULT_MAX_RSP_TIMEback to summary
private static final long DEFAULT_MAX_RSP_TIME
DEFAULT_REQ_RSP_TIMER_TASK_SCHEDULE_MILLISback to summary
private static final long DEFAULT_REQ_RSP_TIMER_TASK_SCHEDULE_MILLIS
drainAmountback to summary
private static final long drainAmount
idleIntervalMillisback to summary
private static final long idleIntervalMillis
idleTimerScheduleMillisback to summary
private static final long idleTimerScheduleMillis
maxConnectionsback to summary
private static final int maxConnections
maxIdleConnectionsback to summary
private static final int maxIdleConnections
maxReqHeadersback to summary
private static final int maxReqHeaders
maxReqHeadersSizeback to summary
private static final int maxReqHeadersSize
maxReqTimeback to summary
private static final long maxReqTime
maxRspTimeback to summary
private static final long maxRspTime
noDelayback to summary
private static final boolean noDelay
reqRspTimerScheduleMillisback to summary
private static final long reqRspTimerScheduleMillis

Constructor Detail

ServerConfigback to summary
pack-priv ServerConfig()

Method Detail

checkLegacyPropertiesback to summary
pack-priv static void checkLegacyProperties(final System.Logger logger)
debugEnabledback to summary
pack-priv static boolean debugEnabled()
getDrainAmountback to summary
pack-priv static long getDrainAmount()
getIdleIntervalMillisback to summary
pack-priv static long getIdleIntervalMillis()

Returns the maximum duration, in milli seconds, a connection can be idle.

Returns:long

Returns the maximum duration, in milli seconds, a connection can be idle

getIdleTimerScheduleMillisback to summary
pack-priv static long getIdleTimerScheduleMillis()

Returns the schedule, in milli seconds, for the timer task that is responsible for managing the idle connections.

Returns:long

Returns the schedule, in milli seconds, for the timer task that is responsible for managing the idle connections

getMaxConnectionsback to summary
pack-priv static int getMaxConnections()
Returns:int

Returns the maximum number of connections that can be open at any given time. This method can return a value of 0 or negative to represent that the limit hasn't been configured.

getMaxIdleConnectionsback to summary
pack-priv static int getMaxIdleConnections()
Returns:int

Returns the maximum number of connections that can be idle. This method can return a value of 0 or negative.

getMaxReqHeadersback to summary
pack-priv static int getMaxReqHeaders()
getMaxReqHeaderSizeback to summary
pack-priv static int getMaxReqHeaderSize()
getMaxReqTimeback to summary
pack-priv static long getMaxReqTime()
Returns:long

Returns the maximum amount of time the server will wait for the request to be read completely. This method can return a value of 0 or negative to imply no maximum limit has been configured.

getMaxRspTimeback to summary
pack-priv static long getMaxRspTime()
Returns:long

Returns the maximum amount of time the server will wait for the response to be generated for a request that is being processed. This method can return a value of 0 or negative to imply no maximum limit has been configured.

getReqRspTimerScheduleMillisback to summary
pack-priv static long getReqRspTimerScheduleMillis()

Returns the timer schedule of the task that's responsible for timing out request/response that have been running longer than any configured timeout.

Returns:long

Returns the timer schedule of the task that's responsible for timing out request/response that have been running longer than any configured timeout

noDelayback to summary
pack-priv static boolean noDelay()