eneter.messaging.messagingsystems.composites.messagebus
Enum EMessageBusRequest

java.lang.Object
  extended by java.lang.Enum<EMessageBusRequest>
      extended by eneter.messaging.messagingsystems.composites.messagebus.EMessageBusRequest
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EMessageBusRequest>

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

Internal commands for interaction with the message bus.


Enum Constant Summary
ConfirmClient
          Used by service when it confirms the client was connected.
ConnectClient
          Used by client when connecting the service via the message bus.
DisconnectClient
          Used by service when it wants to disconnect a particular client.
RegisterService
          Used by service when registering to the message bus.
SendRequestMessage
          Used by client when sending a message to the service.
SendResponseMessage
          Used by service when sending message to the client.
 
Method Summary
static EMessageBusRequest fromInt(int i)
          Converts integer value to the enum.
 int geValue()
          Converts enum to the integer value.
static EMessageBusRequest valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EMessageBusRequest[] 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

RegisterService

public static final EMessageBusRequest RegisterService
Used by service when registering to the message bus. MessageBusMessage Id parameter is service id which shall be registered.


ConnectClient

public static final EMessageBusRequest ConnectClient
Used by client when connecting the service via the message bus. MessageBusMessage Id parameter is service id which shall be connected.


DisconnectClient

public static final EMessageBusRequest DisconnectClient
Used by service when it wants to disconnect a particular client. MessageBusMessage Id parameter is client id which shall be disconnected.


ConfirmClient

public static final EMessageBusRequest ConfirmClient
Used by service when it confirms the client was connected. MessageBusMessage Id parameter is client id which was connected to the service.


SendRequestMessage

public static final EMessageBusRequest SendRequestMessage
Used by client when sending a message to the service. MessageBusMessage Id parameter is client id which sent the message to the service.


SendResponseMessage

public static final EMessageBusRequest SendResponseMessage
Used by service when sending message to the client. MessageBusMessage Id parameter is client id which shall receive the message.

Method Detail

values

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

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

valueOf

public static EMessageBusRequest 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 EMessageBusRequest fromInt(int i)
Converts integer value to the enum.

Parameters:
i - value
Returns:
enum