public static enum MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy extends Enum<MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy>
ThreadPoolExecutor.AbortPolicy
is called.ThreadPoolExecutor.DiscardPolicy
is called.ThreadPoolExecutor.CallerRunsPolicy
is called.ThreadPoolExecutor.DiscardOldestPolicy
is called.Enum Constant and Description |
---|
ABORT |
CALLER_RUNS |
DISCARD |
DISCARD_OLDEST |
Modifier and Type | Method and Description |
---|---|
static MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy ABORT
public static final MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy DISCARD
public static final MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy CALLER_RUNS
public static final MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy DISCARD_OLDEST
public static MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy[] values()
for (MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy c : MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy.values()) System.out.println(c);
public static MqttConfig.ClientConfig.PoolConfig.RejectedExecutionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013-2018–2019 SeedStack. All rights reserved.