public static class MqttConfig.ClientConfig.PoolConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy
Supported RejectedExecutionHandler policies :
ABORT:
ThreadPoolExecutor.AbortPolicy is called.
DISCARD: ThreadPoolExecutor.DiscardPolicy is called.
CALLER_RUNS: ThreadPoolExecutor.CallerRunsPolicy is called.
DISCARD_OLDEST: ThreadPoolExecutor.DiscardOldestPolicy is called.
|
Constructor and Description |
---|
PoolConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getCoreSize() |
int |
getKeepAlive() |
int |
getMaxSize() |
int |
getQueueSize() |
MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy |
getRejectedExecutionPolicy() |
boolean |
isEnabled() |
MqttConfig.ClientConfig.PoolConfig |
setCoreSize(int coreSize) |
MqttConfig.ClientConfig.PoolConfig |
setEnabled(boolean enabled) |
MqttConfig.ClientConfig.PoolConfig |
setKeepAlive(int keepAlive) |
MqttConfig.ClientConfig.PoolConfig |
setMaxSize(int maxSize) |
MqttConfig.ClientConfig.PoolConfig |
setQueueSize(int queueSize) |
MqttConfig.ClientConfig.PoolConfig |
setRejectedExecutionPolicy(MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy rejectedExecutionPolicy) |
public boolean isEnabled()
public MqttConfig.ClientConfig.PoolConfig setEnabled(boolean enabled)
public int getCoreSize()
public MqttConfig.ClientConfig.PoolConfig setCoreSize(int coreSize)
public int getMaxSize()
public MqttConfig.ClientConfig.PoolConfig setMaxSize(int maxSize)
public int getQueueSize()
public MqttConfig.ClientConfig.PoolConfig setQueueSize(int queueSize)
public int getKeepAlive()
public MqttConfig.ClientConfig.PoolConfig setKeepAlive(int keepAlive)
public MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy getRejectedExecutionPolicy()
public MqttConfig.ClientConfig.PoolConfig setRejectedExecutionPolicy(MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy rejectedExecutionPolicy)
Copyright © 2013-2018–2019 SeedStack. All rights reserved.