24 #ifndef _IGNITE_FUTURE 25 #define _IGNITE_FUTURE 27 #include <ignite/common/shared_state.h> 84 const common::SharedState<ValueType>* state0 = state.Get();
100 const common::SharedState<ValueType>* state0 = state.Get();
104 return state0->WaitFor(msTimeout);
116 const common::SharedState<ValueType>* state0 = state.Get();
120 return state0->GetValue();
128 common::SharedState<ValueType>* state0 = state.Get();
140 common::SharedState<ValueType>* state0 = state.Get();
144 return state0->IsSet();
153 Future(common::concurrent::SharedPointer< common::SharedState<ValueType> > state0) :
160 common::concurrent::SharedPointer< common::SharedState<ValueType> > state;
205 const common::SharedState<ValueType>* state0 = state.Get();
221 const common::SharedState<ValueType>* state0 = state.Get();
225 return state0->WaitFor(msTimeout);
236 const common::SharedState<ValueType>* state0 = state.Get();
248 common::SharedState<ValueType>* state0 = state.Get();
260 common::SharedState<ValueType>* state0 = state.Get();
264 return state0->IsSet();
273 Future(common::concurrent::SharedPointer< common::SharedState<ValueType> > state0) :
280 common::concurrent::SharedPointer< common::SharedState<ValueType> > state;
284 #endif //_IGNITE_FUTURE const ValueType & GetValue() const
Get the set value.
Definition: future.h:114
Future & operator=(const Future< ValueType > &other)
Assignment operator.
Definition: future.h:71
void Cancel()
Cancel related operation.
Definition: future.h:246
void Cancel()
Cancel related operation.
Definition: future.h:126
bool IsReady()
Check if the future ready.
Definition: future.h:138
bool WaitFor(int32_t msTimeout) const
Wait for value to be set for specified time.
Definition: future.h:98
bool WaitFor(int32_t msTimeout) const
Wait for value to be set for specified time.
Definition: future.h:219
Future & operator=(const Future< ValueType > &other)
Assignment operator.
Definition: future.h:192
Future(const Future< ValueType > &src)
Copy constructor.
Definition: future.h:180
void Wait() const
Wait for value to be set.
Definition: future.h:82
bool IsReady()
Check if the future ready.
Definition: future.h:258
void GetValue() const
Wait for operation complition or error.
Definition: future.h:234
void Wait() const
Wait for value to be set.
Definition: future.h:203
void ValueType
Template value type.
Definition: future.h:173
Future(const Future< ValueType > &src)
Copy constructor.
Definition: future.h:59
Apache Ignite API.
Definition: cache.h:48
T ValueType
Template value type.
Definition: future.h:52
Declares ignite::IgniteError class.
Future class template.
Definition: future.h:46