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%2Fdatabroker%2Factors%2Fdds%2FDistributedDataStoreClientBehavior.java;h=364e462e57c7b923379c2ec5a548c75f88622472;hp=ff5f8820dda9b90cb7aae48efc2514f697acb65c;hb=50a2f5eb1c94650bc1be1e49d3a5382a1a74a9b3;hpb=c426700e494b8eb18e49c3384d057767a9efed35 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/DistributedDataStoreClientBehavior.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/DistributedDataStoreClientBehavior.java index ff5f8820dd..364e462e57 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/DistributedDataStoreClientBehavior.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/DistributedDataStoreClientBehavior.java @@ -66,16 +66,17 @@ final class DistributedDataStoreClientBehavior extends ClientActorBehavior imple // FIXME: Add state flushing here once we have state } - private ClientActorBehavior createLocalHistory(final CompletableFuture future) { + private ClientActorBehavior createLocalHistory(final ClientActorBehavior currentBehavior, + final CompletableFuture future) { final LocalHistoryIdentifier historyId = new LocalHistoryIdentifier(getIdentifier(), nextHistoryId++); LOG.debug("{}: creating a new local history {} for {}", persistenceId(), historyId, future); // FIXME: initiate backend instantiation future.completeExceptionally(new UnsupportedOperationException("Not implemented yet")); - return this; + return currentBehavior; } - private ClientActorBehavior shutdown() { + private ClientActorBehavior shutdown(final ClientActorBehavior currentBehavior) { // FIXME: Add shutdown procedures here return null; } @@ -100,7 +101,7 @@ final class DistributedDataStoreClientBehavior extends ClientActorBehavior imple @Override public CompletionStage createLocalHistory() { final CompletableFuture future = new CompletableFuture<>(); - context().executeInActor(() -> createLocalHistory(future)); + context().executeInActor(currentBehavior -> createLocalHistory(currentBehavior, future)); return future; }