Class PrimitiveOperation

java.lang.Object
io.atomix.primitive.operation.PrimitiveOperation

public class PrimitiveOperation
extends Object
Base type for Raft state operations.
  • Constructor Details

  • Method Details

    • operation

      public static PrimitiveOperation operation​(OperationId id)
      Creates a new primitive operation with a simplified identifier and a null value.
      Parameters:
      id - the operation identifier
      Returns:
      the primitive operation
    • operation

      public static PrimitiveOperation operation​(OperationId id, byte[] value)
      Creates a new primitive operation with a simplified identifier.
      Parameters:
      id - the operation identifier
      value - the operation value
      Returns:
      the primitive operation
    • id

      public OperationId 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object