Class ShardTransaction

All Implemented Interfaces:
Actor, ExecuteInSelfActor
Direct Known Subclasses:
ShardReadTransaction, ShardWriteTransaction

public abstract class ShardTransaction extends AbstractUntypedActorWithMetering
The ShardTransaction Actor represents a remote transaction that delegates all actions to DOMDataReadWriteTransaction.
  • Constructor Details

    • ShardTransaction

      protected ShardTransaction(ActorRef shardActor, org.opendaylight.controller.cluster.datastore.ShardStats shardStats, TransactionIdentifier transactionId)
  • Method Details

    • props

      public static Props props(TransactionType type, org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, ActorRef shardActor, DatastoreContext datastoreContext, org.opendaylight.controller.cluster.datastore.ShardStats shardStats)
    • getDOMStoreTransaction

      protected abstract org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> getDOMStoreTransaction()
    • getShardActor

      protected ActorRef getShardActor()
    • getTransactionId

      protected final TransactionIdentifier getTransactionId()
    • handleReceive

      public void handleReceive(Object message)
      Description copied from class: AbstractUntypedActor
      Receive and handle an incoming message. If the implementation does not handle this particular message, it should call AbstractUntypedActor.ignoreMessage(Object) or AbstractUntypedActor.unknownMessage(Object).
      Specified by:
      handleReceive in class AbstractUntypedActor
      Parameters:
      message - the incoming message
    • returnCloseTransactionReply

      protected boolean returnCloseTransactionReply()
    • readData

      protected void readData(org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, ReadData message)
    • dataExists

      protected void dataExists(org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, DataExists message)