Modifier and Type | Interface and Description |
---|---|
static class |
MultiplexerConfig.LoadBalancer
Indicates the load balancing algorithm for the Multiplexer.
|
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.
|
MultiplexerConfig.LoadBalancer |
getLoadBalancer()
Deprecated.
This configuration will be removed in a future release.
|
int |
getMaximumEventQueueSize()
Get the maximum size of the event queue for the multiplexer.
|
String |
getName()
Gets the multiplexer definition name.
|
int |
getSize()
Gets the size.
|
int |
getThreadPriority()
Deprecated.
Since 5.8. The multiplexer thread priority can no longer be
configured.
|
void |
setLatencyWarning(long latencyValue)
Sets the latency warning threshold.
|
void |
setLoadBalancer(MultiplexerConfig.LoadBalancer loadBalancer)
Deprecated.
This configuration will be removed in a future release. If
you have found the LEAST_CLIENTS algorithm useful, please
contact Push Technology Support and reference case 11098.
|
void |
setMaximumEventQueueSize(int size)
Sets the maximum event queue size.
|
void |
setSize(int size)
Sets the number of multiplexer threads.
|
void |
setThreadPriority(int priority)
Deprecated.
Since 5.8. The multiplexer thread priority can no longer be
configured and this method has no effect.
|
static final int DEFAULT_EVENT_QUEUE_SIZE
String getName()
void setSize(int size) throws ConfigException
This is the number of multiplexers that will start in readiness for clients to be assigned to. If there are going to be a large number of users, this number should be increased.
By default this is set to the number of processors available.
size
- the number of multiplexer threadsConfigException
- if unable to set propertyint getSize()
@Deprecated void setThreadPriority(int priority) throws ConfigException
ConfigException
- if the configuration is locked@Deprecated int getThreadPriority()
Thread.NORM_PRIORITY
@Deprecated void setLoadBalancer(MultiplexerConfig.LoadBalancer loadBalancer) throws ConfigException
Specifies the load balancing algorithm to use for client registration.
By default this is set to MultiplexerConfig.LoadBalancer.ROUND_ROBIN
.
loadBalancer
- the load balancerConfigException
- if unable to set property@Deprecated MultiplexerConfig.LoadBalancer getLoadBalancer()
void setLatencyWarning(long latencyValue) throws ConfigException
Multiplexers are critical to the operation of Diffusion. If there are too many clients assigned to too few multiplexers, there is a possibility of message latency. This is an optional setting which can be set to issue a warning if the multiplexer is taking too long to complete its operational cycle.
Warnings are logged to the server log and reported to the publisher
MultiplexerLatencyListener
event API.
From Diffusion 5.7, the default value has been changed to 1000 (1 second) to match the value used in the default installation.
latencyValue
- threshold in millisecondsConfigException
- if unable to set propertylong getLatencyWarning()
void setMaximumEventQueueSize(int size) throws ConfigException
This specifies the maximum number of entries in the multiplexer event queue. If not explicitly specified then 128k is assumed. 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 © 2016 Push Technology Ltd. All Rights Reserved.