@Deprecated public interface WriteSelectorConfig extends Config
Configuration for the write selectors pool. This is a configuration item for the server and event publishers.
The write selectors are used to finish sending any partially written messages that are unable to complete because the socket buffer is full. This applies to messages sent by the multiplexer not messages sent from the Java client.
The default configuration would normally be sufficient but may need to be increased if there are a large number of slow consuming Clients.
Modifier and Type | Method and Description |
---|---|
MultiplexerConfig.LoadBalancer |
getLoadBalancer()
Deprecated.
Get the load balancer used for the selectors.
|
int |
getQueueSize()
Deprecated.
Get the maximum size of the event queue for each selector.
|
int |
getSize()
Deprecated.
Get the number of write selectors.
|
int |
getThreadPriority()
Deprecated.
Get the thread priority of the write selectors.
|
long |
getTimeout()
Deprecated.
since 5.2, no longer used
|
void |
setLoadBalancer(MultiplexerConfig.LoadBalancer balancer)
Deprecated.
Set the load balancer used for the selectors.
|
void |
setQueueSize(int size)
Deprecated.
Set the maximum size of the event queue for each selector.
|
void |
setSize(int size)
Deprecated.
Set the number of write selectors.
|
void |
setThreadPriority(int priority)
Deprecated.
Set the thread priority of the write selectors.
|
void |
setTimeout(long timeout)
Deprecated.
since 5.2, no longer used
|
void setThreadPriority(int priority) throws ConfigException
If this is not explicitly set then Thread.NORM_PRIORITY
is
assumed.
priority
- Thread priorityConfigException
- If locked or invalidint getThreadPriority()
void setSize(int size) throws ConfigException
If this is not set explicitly then 1 is assumed.
size
- Number of selectorsConfigException
- If locked or invalidint getSize()
@Deprecated void setTimeout(long timeout) throws ConfigException
If this is not set explicitly then 4000 (4 seconds) is assumed.
timeout
- Timeout in millisecondsConfigException
- If locked or invalid@Deprecated long getTimeout()
void setLoadBalancer(MultiplexerConfig.LoadBalancer balancer) throws ConfigException
If not set explicitly then MultiplexerConfig.LoadBalancer.ROUND_ROBIN
is assumed.
balancer
- The load balancer algorithmConfigException
- If locked or invalidMultiplexerConfig.LoadBalancer getLoadBalancer()
void setQueueSize(int size) throws ConfigException
If this is not set explicitly then 1024 is assumed.
size
- The size of the event queue for each selectorConfigException
- If locked or invalidint getQueueSize()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.