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%2FNoOpDOMStoreThreePhaseCommitCohort.java;h=1f5f5bcf79351764eb7776634a950f59077f63dc;hp=376b6580464cd08f8942d2b800d5fccb69b333f0;hb=2727bea09c83646b6cbd2ef9672d0b7f6cf3b22f;hpb=78527e81f8cc82140af5cb2649863a597f380291 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/NoOpDOMStoreThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/NoOpDOMStoreThreePhaseCommitCohort.java index 376b658046..1f5f5bcf79 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/NoOpDOMStoreThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/NoOpDOMStoreThreePhaseCommitCohort.java @@ -7,8 +7,6 @@ */ 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.Collections; import java.util.List; @@ -18,12 +16,9 @@ import scala.concurrent.Future; * A {@link org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort} * instance given out for empty transactions. */ -final class NoOpDOMStoreThreePhaseCommitCohort extends AbstractThreePhaseCommitCohort { +final class NoOpDOMStoreThreePhaseCommitCohort extends AbstractThreePhaseCommitCohort { static final NoOpDOMStoreThreePhaseCommitCohort INSTANCE = new NoOpDOMStoreThreePhaseCommitCohort(); - private static final ListenableFuture IMMEDIATE_VOID_SUCCESS = Futures.immediateFuture(null); - private static final ListenableFuture IMMEDIATE_BOOLEAN_SUCCESS = Futures.immediateFuture(Boolean.TRUE); - private NoOpDOMStoreThreePhaseCommitCohort() { // Hidden to prevent instantiation } @@ -49,7 +44,7 @@ final class NoOpDOMStoreThreePhaseCommitCohort extends AbstractThreePhaseCommitC } @Override - List> getCohortFutures() { + List> getCohortFutures() { return Collections.emptyList(); } }