public enum PacketListenerRole extends Enum<PacketListenerRole>
The Advisor role is provided for those packet listeners who
wish to annotate the MessageContext
with information useful to
listeners further downstream. It is expected that Advisors will
not be modifying the packet in any way.
The Director role is provided for those packet listeners who will be programming the Packet-Out message in some way.
The Observer role is provided for those packet listeners who wish to observe the outcome of packet processing, but who will not be taking an active part.
Modifier and Type | Method and Description |
---|---|
static PacketListenerRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketListenerRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketListenerRole ADVISOR
public static final PacketListenerRole DIRECTOR
public static final PacketListenerRole OBSERVER
public static PacketListenerRole[] values()
for (PacketListenerRole c : PacketListenerRole.values()) System.out.println(c);
public static PacketListenerRole 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 © 2016. All Rights Reserved.