eneter.messaging.endpoints.rpc
Enum ERpcRequest

java.lang.Object
  extended by java.lang.Enum<ERpcRequest>
      extended by eneter.messaging.endpoints.rpc.ERpcRequest
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ERpcRequest>

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

Internal commands for interaction via RPC.


Enum Constant Summary
InvokeMethod
          Client invokes a method.
RaiseEvent
          Service raises an event.
Response
          RPC service sends back a response for 'InvokeMethod', 'SubscribeEvent' or 'UnsubscribeEvent'.
SubscribeEvent
          Client subscribes an event.
UnsubscribeEvent
          Client unsubscribes an event.
 
Method Summary
static ERpcRequest fromInt(int i)
          Converts integer value to the enum.
 int geValue()
          Converts enum to the integer value.
static ERpcRequest valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ERpcRequest[] 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

InvokeMethod

public static final ERpcRequest InvokeMethod
Client invokes a method.


SubscribeEvent

public static final ERpcRequest SubscribeEvent
Client subscribes an event.


UnsubscribeEvent

public static final ERpcRequest UnsubscribeEvent
Client unsubscribes an event.


RaiseEvent

public static final ERpcRequest RaiseEvent
Service raises an event.


Response

public static final ERpcRequest Response
RPC service sends back a response for 'InvokeMethod', 'SubscribeEvent' or 'UnsubscribeEvent'.

Method Detail

values

public static ERpcRequest[] 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 (ERpcRequest c : ERpcRequest.values())
    System.out.println(c);

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

valueOf

public static ERpcRequest 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:

fromInt

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

Parameters:
i - value
Returns:
enum