Interface MultiplexerConfig
- All Superinterfaces:
- Config
Multiplexers are responsible for subscription evaluation and output processing. Each session hosted by the server is allocated to a multiplexer. Each multiplexer uses a CPU core.
- Since:
- 4.4
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDefault multiplexer queue size.
- 
Method SummaryModifier and TypeMethodDescriptionlongGets the latency warning threshold.intGet the maximum size of the event queue for the multiplexer.longGets the multiplexer progress monitoring period.intgetSize()Gets the size.voidsetLatencyWarning(long latencyValue) Sets the latency warning threshold.voidsetMaximumEventQueueSize(int size) Sets the maximum event queue size.voidsetMonitorPeriod(long period) Sets the multiplexer progress monitoring period.voidsetSize(int size) Sets the number of multiplexer threads.
- 
Field Details- 
DEFAULT_EVENT_QUEUE_SIZEstatic final int DEFAULT_EVENT_QUEUE_SIZEDefault multiplexer queue size.- See Also:
 
 
- 
- 
Method Details- 
setSizeSets the number of multiplexer threads.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. - Parameters:
- size- the number of multiplexer threads
- Throws:
- ConfigException- if unable to set property
 
- 
getSizeint getSize()Gets the size.- Returns:
- size
 
- 
setLatencyWarningSets the latency warning threshold.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). - Parameters:
- latencyValue- threshold in milliseconds
- Throws:
- ConfigException- if unable to set property
 
- 
getLatencyWarninglong getLatencyWarning()Gets the latency warning threshold.- Returns:
- latency warning threshold in milliseconds
- See Also:
 
- 
setMonitorPeriodSets the multiplexer progress monitoring period.A watchdog task checks the multiplexer every periodmilliseconds. 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). - Parameters:
- period- period in milliseconds
- Throws:
- ConfigException- if unable to set property
- Since:
- 6.2
 
- 
getMonitorPeriodlong getMonitorPeriod()Gets the multiplexer progress monitoring period.- Returns:
- multiplexer monitoring period in milliseconds
- Since:
- 6.2
- See Also:
 
- 
setMaximumEventQueueSizeSets the maximum event queue size.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. - Parameters:
- size- the maximum number of entries in the queue
- Throws:
- ConfigException- if unable to set the property
 
- 
getMaximumEventQueueSizeint getMaximumEventQueueSize()Get the maximum size of the event queue for the multiplexer.- Returns:
- the maximum queue size.
 
 
-