com.j_spaces.core.cluster
Enum ReplicationOperationType
java.lang.Object
java.lang.Enum<ReplicationOperationType>
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
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
TRANSACTION
public static final ReplicationOperationType TRANSACTION
FULL_PERMISSIONS
public static Set<ReplicationOperationType> FULL_PERMISSIONS
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()
isTemplate
public boolean isTemplate()
fromByte
public static ReplicationOperationType fromByte(byte opCode)