Package io.atomix.primitive.operation
Interface OperationId
- All Superinterfaces:
io.atomix.utils.Identifier<String>
public interface OperationId extends io.atomix.utils.Identifier<String>
Raft operation identifier.
-
Method Summary
Modifier and Type Method Description static OperationIdcommand(String id)Returns a new command operation identifier.static OperationIdfrom(String id, OperationType type)Returns a new operation identifier.static OperationIdquery(String id)Returns a new query operation identifier.static OperationIdsimplify(OperationId operationId)Simplifies the given operation identifier.OperationTypetype()Returns the operation type.
-
Method Details
-
command
Returns a new command operation identifier.- Parameters:
id- the command identifier- Returns:
- the operation identifier
-
query
Returns a new query operation identifier.- Parameters:
id- the query identifier- Returns:
- the operation identifier
-
from
Returns a new operation identifier.- Parameters:
id- the operation nametype- the operation type- Returns:
- the operation identifier
-
simplify
Simplifies the given operation identifier.- Parameters:
operationId- the operation identifier to simplify- Returns:
- the simplified operation identifier
-
type
OperationType type()Returns the operation type.- Returns:
- the operation type
-