Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EVENT_QUEUE_SIZE
Default multiplexer queue size.
|
Modifier and Type | Method and Description |
---|---|
long |
getLatencyWarning()
Gets the latency warning threshold.
|
int |
getMaximumEventQueueSize()
Get the maximum size of the event queue for the multiplexer.
|
long |
getMonitorPeriod()
Gets the multiplexer progress monitoring period.
|
int |
getSize()
Gets the size.
|
void |
setLatencyWarning(long latencyValue)
Sets the latency warning threshold.
|
void |
setMaximumEventQueueSize(int size)
Sets the maximum event queue size.
|
void |
setMonitorPeriod(long period)
Sets the multiplexer progress monitoring period.
|
void |
setSize(int size)
Sets the number of multiplexer threads.
|
static final int DEFAULT_EVENT_QUEUE_SIZE
void setSize(int size) throws ConfigException
The number of multiplexer instances. Each multiplexer uses a CPU core. If the server will host a large number of sessions, and there are spare CPU cores available, increase this number.
By default this is set to the half of the number of available CPU cores.
size
- the number of multiplexer threadsConfigException
- if unable to set propertyint getSize()
void setLatencyWarning(long latencyValue) throws ConfigException
This setting controls the threshold at which to issue a warning if the multiplexer is taking too long to complete an operational cycle.
Warnings are logged to the server log at info level.
The default value is 1000 (1 second).
latencyValue
- threshold in millisecondsConfigException
- if unable to set propertylong getLatencyWarning()
setLatencyWarning(long)
void setMonitorPeriod(long period) throws ConfigException
A watchdog task checks the multiplexer every period
milliseconds.
If the multiplexer has not completed at least one operational cycle in
this time, a diagnostic warning will be logged to the server log.
The default value is 5000 (5 seconds).
period
- period in millisecondsConfigException
- if unable to set propertylong getMonitorPeriod()
setMonitorPeriod(long)
void setMaximumEventQueueSize(int size) throws ConfigException
The maximum number of entries in the multiplexer event queue. The default value is 128k. Under normal circumstances this value should not be changed from the default.
size
- the maximum number of entries in the queueConfigException
- if unable to set the propertyint getMaximumEventQueueSize()
Copyright © 2022 Push Technology Ltd. All Rights Reserved.