Package io.atomix.primitive.operation
Class PrimitiveOperation
java.lang.Object
io.atomix.primitive.operation.PrimitiveOperation
public class PrimitiveOperation extends Object
Base type for Raft state operations.
-
Constructor Summary
Constructors Constructor Description PrimitiveOperation(OperationId id, byte[] value) -
Method Summary
Modifier and Type Method Description booleanequals(Object object)inthashCode()OperationIdid()Returns the operation identifier.static PrimitiveOperationoperation(OperationId id)Creates a new primitive operation with a simplified identifier and a null value.static PrimitiveOperationoperation(OperationId id, byte[] value)Creates a new primitive operation with a simplified identifier.StringtoString()byte[]value()Returns the operation value.
-
Constructor Details
-
Method Details
-
operation
Creates a new primitive operation with a simplified identifier and a null value.- Parameters:
id- the operation identifier- Returns:
- the primitive operation
-
operation
Creates a new primitive operation with a simplified identifier.- Parameters:
id- the operation identifiervalue- the operation value- Returns:
- the primitive operation
-
id
Returns the operation identifier.- Returns:
- the operation identifier
-
value
public byte[] value()Returns the operation value.- Returns:
- the operation value
-
hashCode
public int hashCode() -
equals
-
toString
-