public static enum MessageChannel.PreserveJoinPolicy extends Enum<MessageChannel.PreserveJoinPolicy>
When close(flags), is called the flag
MessageChannel.PRESERVE_CHANNEL_JOINS controls whether or not
leave(0) is called when close()
is called for the channel.
| Enum Constant and Description |
|---|
Default
Use the default behavior on
close() in determining whether to call leave(flags). |
Leave
|
Preserve
|
| Modifier and Type | Method and Description |
|---|---|
static MessageChannel.PreserveJoinPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageChannel.PreserveJoinPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageChannel.PreserveJoinPolicy Default
close() in determining whether to call leave(flags).
The default behavior is to leave the channel unless close(PRESERVE_CHANNEL_JOINS) is explicitly called.
public static final MessageChannel.PreserveJoinPolicy Leave
public static final MessageChannel.PreserveJoinPolicy Preserve
public static MessageChannel.PreserveJoinPolicy[] values()
for (MessageChannel.PreserveJoinPolicy c : MessageChannel.PreserveJoinPolicy.values()) System.out.println(c);
public static MessageChannel.PreserveJoinPolicy 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 © 2019 Neeve Research, LLC. All Rights Reserved.