com.j_spaces.core.cluster
Enum ReplicationOperationType

java.lang.Object
  extended by java.lang.Enum<ReplicationOperationType>
      extended by com.j_spaces.core.cluster.ReplicationOperationType
All Implemented Interfaces:
Serializable, Comparable<ReplicationOperationType>

public enum ReplicationOperationType
extends Enum<ReplicationOperationType>

represents all the posible operation types that can be replicated.

Since:
6.02

Enum Constant Summary
DISCARD
           
EXTEND_LEASE
           
LEASE_EXPIRATION
           
NOTIFY
           
TAKE
           
UPDATE
           
WRITE
           
 
Method Summary
static ReplicationOperationType fromByte(byte opCode)
           
 byte getOpCode()
           
static ReplicationOperationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReplicationOperationType[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

WRITE

public static final ReplicationOperationType WRITE

TAKE

public static final ReplicationOperationType TAKE

EXTEND_LEASE

public static final ReplicationOperationType EXTEND_LEASE

UPDATE

public static final ReplicationOperationType UPDATE

DISCARD

public static final ReplicationOperationType DISCARD

LEASE_EXPIRATION

public static final ReplicationOperationType LEASE_EXPIRATION

NOTIFY

public static final ReplicationOperationType NOTIFY
Method Detail

values

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

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

valueOf

public static ReplicationOperationType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

getOpCode

public byte getOpCode()

fromByte

public static ReplicationOperationType fromByte(byte opCode)