BUG-5280: introduce the notion of client actor time
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / databroker / actors / dds / CreateLocalHistoryCommand.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.cluster.databroker.actors.dds;
9
10 import java.util.concurrent.CompletableFuture;
11
12 /**
13  * Command sent from the Java world to the client actor to create a new local history.
14  *
15  * @author Robert Varga
16  */
17 final class CreateLocalHistoryCommand {
18     private final CompletableFuture<ClientLocalHistory> future = new CompletableFuture<>();
19
20     CompletableFuture<ClientLocalHistory> future() {
21         return future;
22     }
23 }