public enum EBrokerRequest extends java.lang.Enum<EBrokerRequest>
BrokerMessage
.
The request for the broker is the message that is intended for the broker and not for the subscribers.
This message is used by the broker client to subscribe and unsubscribe.Enum Constant and Description |
---|
Publish
Request to publish a message.
|
Subscribe
Request to subscribe exactly for the specified message.
|
Unsubscribe
Request to unsubscribe from exactly specified message.
|
UnsubscribeAll
Request to unsubscribe all messages and regular expressions.
|
Modifier and Type | Method and Description |
---|---|
static EBrokerRequest |
fromInt(int i)
Converts integer value to the enum.
|
int |
geValue()
Converts enum to the integer value.
|
static EBrokerRequest |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EBrokerRequest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EBrokerRequest Subscribe
public static final EBrokerRequest Unsubscribe
public static final EBrokerRequest UnsubscribeAll
public static final EBrokerRequest Publish
public static EBrokerRequest[] values()
for (EBrokerRequest c : EBrokerRequest.values()) System.out.println(c);
public static EBrokerRequest 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 geValue()
public static EBrokerRequest fromInt(int i)
i
- value