eneter.messaging.nodes.broker
Enum EBrokerRequest

java.lang.Object
  extended by java.lang.Enum<EBrokerRequest>
      extended by eneter.messaging.nodes.broker.EBrokerRequest
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EBrokerRequest>

public enum EBrokerRequest
extends java.lang.Enum<EBrokerRequest>

Specifies the internal broker request inside the 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 Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Subscribe

public static final EBrokerRequest Subscribe
Request to subscribe exactly for the specified message.


Unsubscribe

public static final EBrokerRequest Unsubscribe
Request to unsubscribe from exactly specified message.


UnsubscribeAll

public static final EBrokerRequest UnsubscribeAll
Request to unsubscribe all messages and regular expressions.


Publish

public static final EBrokerRequest Publish
Request to publish a message.

Method Detail

values

public static EBrokerRequest[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EBrokerRequest c : EBrokerRequest.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EBrokerRequest valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

geValue

public int geValue()
Converts enum to the integer value.

Returns:
value

fromInt

public static EBrokerRequest fromInt(int i)
Converts integer value to the enum.

Parameters:
i - value
Returns:
enum