Interface TransactionOp

All Known Implementing Classes:
TransactionOp.MapDelete, TransactionOp.MapPut, TransactionOp.MapPutIfAbsent, TransactionOp.MultiMapPut, TransactionOp.MultiMapRemove, TransactionOp.QueueOffer, TransactionOp.QueuePoll, TransactionOp.SetAdd, TransactionOp.SetRemove

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
  • Method Details

    • structureName

      String structureName()
      Gets the name of the data structure this operation targets.
      Returns:
      the structure name (never null)