public static enum Channels.OverflowPolicy extends java.lang.Enum<Channels.OverflowPolicy>
| Enum Constant and Description |
|---|
BACKOFF
The sender will block for some time, and retry.
|
BLOCK
The sender will block until there's a vacancy in the channel.
|
DISPLACE
The oldest message in the queue will be removed to make room for the new message.
|
DROP
The message will be silently dropped.
|
THROW
The sender will get an exception (except if the channel is an actor's mailbox)
|
| Modifier and Type | Method and Description |
|---|---|
static Channels.OverflowPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Channels.OverflowPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Channels.OverflowPolicy THROW
public static final Channels.OverflowPolicy DROP
public static final Channels.OverflowPolicy BLOCK
public static final Channels.OverflowPolicy BACKOFF
public static final Channels.OverflowPolicy DISPLACE
public static Channels.OverflowPolicy[] values()
for (Channels.OverflowPolicy c : Channels.OverflowPolicy.values()) System.out.println(c);
public static Channels.OverflowPolicy 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