Interface TransactionOp
- All Known Implementing Classes:
TransactionOp.MapDelete, TransactionOp.MapPut, TransactionOp.MapPutIfAbsent, TransactionOp.MultiMapPut, TransactionOp.MultiMapRemove, TransactionOp.QueueOffer, TransactionOp.QueuePoll, TransactionOp.SetAdd, TransactionOp.SetRemove
public sealed interface TransactionOp
permits TransactionOp.MapPut, TransactionOp.MapDelete, TransactionOp.MapPutIfAbsent, TransactionOp.SetAdd, TransactionOp.SetRemove, TransactionOp.QueueOffer, TransactionOp.QueuePoll, TransactionOp.MultiMapPut, TransactionOp.MultiMapRemove
Sealed interface representing operations that can be buffered in a transaction.
Purpose: TransactionOp is the base type for all transactional operations. Each operation is strongly typed for type safety, efficient pattern matching, and correct serialization across the network.
Design: Uses sealed classes and pattern matching to ensure type safety and enable exhaustive switch expressions during transaction execution.
Operations Supported:
- Map operations: Put, Delete, PutIfAbsent
- Set operations: Add, Remove
- Queue operations: Offer, Poll
- MultiMap operations: Put, Remove
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordMap delete operation: remove key.static final recordMap put operation: associates key with value in a distributed map.static final recordMap putIfAbsent operation: insert value only if key doesn't exist.static final recordMultiMap put operation: add value for key.static final recordMultiMap remove operation: remove value for key.static final recordQueue offer operation: append to queue.static final recordQueue poll operation: remove from front of queue.static final recordSet add operation: add a member.static final recordSet remove operation: remove a member. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the data structure this operation targets.
-
Method Details
-
structureName
String structureName()Gets the name of the data structure this operation targets.- Returns:
- the structure name (never null)
-