Hazelcast C++ Client
ICompletableFuture.h
1 /*
2  * Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef HAZELCAST_CLIENT_ICOMPLETABLEFUTURE_H_
17 #define HAZELCAST_CLIENT_ICOMPLETABLEFUTURE_H_
18 
19 #include <boost/shared_ptr.hpp>
20 
21 #include "hazelcast/client/IFuture.h"
22 #include "hazelcast/client/ExecutionCallback.h"
23 #include "hazelcast/util/Executor.h"
24 
25 using namespace hazelcast::client;
26 using namespace hazelcast::util;
27 
28 namespace hazelcast {
29  namespace client {
30 
37  template<typename V>
38  class ICompletableFuture : public IFuture<V> {
39  public:
50  virtual void andThen(const boost::shared_ptr<ExecutionCallback<V> > &callback) = 0;
51 
63  virtual void andThen(const boost::shared_ptr<ExecutionCallback<V> > &callback,
64  const boost::shared_ptr<Executor> &executor) = 0;
65  };
66  }
67 }
68 
69 #endif /* HAZELCAST_CLIENT_ICOMPLETABLEFUTURE_H_ */
Definition: AWSClient.h:30
Definition: MapEntryView.h:33
ExecutionCallback allows to asynchronously get notified when the execution is completed, either successfully or with error.
Definition: ExecutionCallback.h:41
A.
Definition: IFuture.h:50
A Future where one can asynchronously listen on completion.
Definition: ICompletableFuture.h:38
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32