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=7ef1cd49851ef838361c509e3f8af60020de644b;hp=cac0f5135463f0772fdaf34c4f25297c22e8cf70;hb=ccca30bbb1545643c427fc59c23329c5d49f8d4b;hpb=1d643894797401ebec8e2242c234779675ca37c3 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..7ef1cd4985 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,9 +7,10 @@ */ 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 org.opendaylight.mdsal.dom.spi.store.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(); }