public enum MessageFlag extends Enum<MessageFlag>
Enum Constant and Description |
---|
DONT_WAIT
Specifies that the operation should be performed in non-blocking mode.
|
NONE
Specifies no flags.
|
SEND_MORE
Specifies that the message being sent is a multi-part message, and that further message parts are to follow.
|
Modifier and Type | Method and Description |
---|---|
int |
getFlag()
Send and receive flag constant
|
static MessageFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageFlag NONE
public static final MessageFlag DONT_WAIT
public static final MessageFlag SEND_MORE
public static MessageFlag[] values()
for (MessageFlag c : MessageFlag.values()) System.out.println(c);
public static MessageFlag 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 nullpublic int getFlag()
Copyright © 2019. All rights reserved.