Hazelcast C++ Client
Hazelcast C++ Client Library
hazelcast::client::execution_callback< V > Class Template Referenceabstract

execution_callback allows to asynchronously get notified when the execution is completed, either successfully or with error. More...

#include <execution_callback.h>

Public Member Functions

virtual void on_response (const boost::optional< V > &response)=0
 Called when an execution is completed successfully. More...
 
virtual void on_failure (std::exception_ptr e)=0
 Called when an execution is completed with an error. More...
 

Detailed Description

template<typename V>
class hazelcast::client::execution_callback< V >

execution_callback allows to asynchronously get notified when the execution is completed, either successfully or with error.

Parameters
<V>value

Definition at line 40 of file execution_callback.h.

Member Function Documentation

◆ on_failure()

template<typename V >
virtual void hazelcast::client::execution_callback< V >::on_failure ( std::exception_ptr  e)
pure virtual

Called when an execution is completed with an error.

Parameters
ethe exception that is thrown

◆ on_response()

template<typename V >
virtual void hazelcast::client::execution_callback< V >::on_response ( const boost::optional< V > &  response)
pure virtual

Called when an execution is completed successfully.

Parameters
responsethe result of the successful execution

The documentation for this class was generated from the following file: