public enum RejectedExecutionPolicy extends Enum<RejectedExecutionPolicy>
RpcInvokeCallbackListener.CallbackTask.| Enum Constant and Description |
|---|
CALLER_HANDLE_EXCEPTION |
CALLER_RUNS |
DISCARD |
| Modifier and Type | Method and Description |
|---|---|
static RejectedExecutionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RejectedExecutionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RejectedExecutionPolicy DISCARD
public static final RejectedExecutionPolicy CALLER_RUNS
public static final RejectedExecutionPolicy CALLER_HANDLE_EXCEPTION
public static RejectedExecutionPolicy[] values()
for (RejectedExecutionPolicy c : RejectedExecutionPolicy.values()) System.out.println(c);
public static 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 © 2024. All rights reserved.