public enum ChannelMode extends java.lang.Enum<ChannelMode>
ChannelOptions.| Enum Constant and Description |
|---|
presence
The client can enter the presence set.
|
presence_subscribe
The client can receive presence messages.
|
publish
The client can publish messages.
|
subscribe
The client can subscribe to messages.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMask() |
static java.util.Set<ChannelMode> |
toSet(int flags) |
static ChannelMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChannelMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelMode presence
public static final ChannelMode publish
public static final ChannelMode subscribe
public static final ChannelMode presence_subscribe
public static ChannelMode[] values()
for (ChannelMode c : ChannelMode.values()) System.out.println(c);
public static ChannelMode 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 nullpublic int getMask()
public static java.util.Set<ChannelMode> toSet(int flags)