Class ReadyLocalTransaction


  • public final class ReadyLocalTransaction
    extends Object
    Message notifying the shard leader to apply modifications which have been prepared locally against its DataTree. This message is not directly serializable, simply because the leader and sender need to be on the same system. When it needs to be sent out to a remote system, it needs to be intercepted by ReadyLocalTransactionSerializer and turned into BatchedModifications.
    • Constructor Detail

      • ReadyLocalTransaction

        public ReadyLocalTransaction​(org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier transactionId,
                                     org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification modification,
                                     boolean doCommitOnReady,
                                     Optional<SortedSet<String>> participatingShardNames)
    • Method Detail

      • getTransactionId

        public org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier getTransactionId()
      • getModification

        public org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification getModification()
      • isDoCommitOnReady

        public boolean isDoCommitOnReady()
      • getRemoteVersion

        public short getRemoteVersion()
      • setRemoteVersion

        public void setRemoteVersion​(short remoteVersion)