Hazelcast C++ Client
Public Member Functions | List of all members
hazelcast::client::ExecutionCallback< V > Class Template Referenceabstract

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

#include <ExecutionCallback.h>

Public Member Functions

virtual void onResponse (const boost::shared_ptr< V > &response)=0
 Called when an execution is completed successfully. More...
 
virtual void onFailure (const boost::shared_ptr< exception::IException > &e)=0
 Called when an execution is completed with an error. More...
 

Detailed Description

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

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

Parameters
<V>value

Member Function Documentation

◆ onFailure()

template<typename V>
virtual void hazelcast::client::ExecutionCallback< V >::onFailure ( const boost::shared_ptr< exception::IException > &  e)
pure virtual

Called when an execution is completed with an error.

Parameters
ethe exception that is thrown

◆ onResponse()

template<typename V>
virtual void hazelcast::client::ExecutionCallback< V >::onResponse ( const boost::shared_ptr< 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: