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%2FAbstractThreePhaseCommitCohort.java;h=7c56f261edb64b55190873d2e9922bace0fe5809;hp=cac0f5135463f0772fdaf34c4f25297c22e8cf70;hb=c6c9b43923bbe8bc6d586ce09649324949e6b092;hpb=2801b4929e60938cdac4c84dff6422e24e93d11d diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractThreePhaseCommitCohort.java index cac0f51354..7c56f261ed 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractThreePhaseCommitCohort.java @@ -7,7 +7,8 @@ */ package org.opendaylight.controller.cluster.datastore; -import akka.actor.ActorSelection; +import com.google.common.util.concurrent.Futures; +import com.google.common.util.concurrent.ListenableFuture; import java.util.List; import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort; import scala.concurrent.Future; @@ -17,6 +18,9 @@ import scala.concurrent.Future; * implementation. In addition to the usual set of methods it also contains the list of actor * futures. */ -abstract class AbstractThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { - abstract List> getCohortFutures(); +public abstract class AbstractThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { + protected static final ListenableFuture IMMEDIATE_VOID_SUCCESS = Futures.immediateFuture(null); + protected static final ListenableFuture IMMEDIATE_BOOLEAN_SUCCESS = Futures.immediateFuture(Boolean.TRUE); + + abstract List> getCohortFutures(); }