public enum OverflowStrategy extends java.lang.Enum<OverflowStrategy>
| Enum Constant and Description |
|---|
BLOCK
Block the publishing Thread
|
DROP
Discard the message and continue
|
| Modifier and Type | Method and Description |
|---|---|
static OverflowStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OverflowStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OverflowStrategy BLOCK
public static final OverflowStrategy DROP
public static OverflowStrategy[] values()
for (OverflowStrategy c : OverflowStrategy.values()) System.out.println(c);
public static OverflowStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null