X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FShardDataTreeTransactionParent.java;h=23fa0c286a3c9728ff3c32a80155f88a0a176a0a;hp=ee04aff515df8c4288e12e459137f26d4f6ab472;hb=e78622411319748472b5d9edab14eb6dc92cf6b1;hpb=dea515c8870769408b9bea29f555d6b71ff43211 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java index ee04aff515..23fa0c286a 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTransactionParent.java @@ -7,7 +7,19 @@ */ package org.opendaylight.controller.cluster.datastore; +import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier; +import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification; + abstract class ShardDataTreeTransactionParent { - abstract void abortTransaction(AbstractShardDataTreeTransaction transaction); + + abstract void abortFromTransactionActor(AbstractShardDataTreeTransaction transaction); + + abstract void abortTransaction(AbstractShardDataTreeTransaction transaction, Runnable callback); + abstract ShardDataTreeCohort finishTransaction(ReadWriteShardDataTreeTransaction transaction); + + abstract ShardDataTreeCohort createReadyCohort(TransactionIdentifier txId, DataTreeModification mod); + + abstract ShardDataTreeCohort createFailedCohort(TransactionIdentifier txId, DataTreeModification mod, + Exception failure); }