Interface OperationId

All Superinterfaces:
io.atomix.utils.Identifier<String>

public interface OperationId
extends io.atomix.utils.Identifier<String>
Raft operation identifier.
  • Method Details

    • command

      static OperationId command​(String id)
      Returns a new command operation identifier.
      Parameters:
      id - the command identifier
      Returns:
      the operation identifier
    • query

      static OperationId query​(String id)
      Returns a new query operation identifier.
      Parameters:
      id - the query identifier
      Returns:
      the operation identifier
    • from

      static OperationId from​(String id, OperationType type)
      Returns a new operation identifier.
      Parameters:
      id - the operation name
      type - the operation type
      Returns:
      the operation identifier
    • simplify

      static OperationId simplify​(OperationId operationId)
      Simplifies the given operation identifier.
      Parameters:
      operationId - the operation identifier to simplify
      Returns:
      the simplified operation identifier
    • type

      Returns the operation type.
      Returns:
      the operation type