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

MultiExecutionCallback provides notification for when an execution is completed on each member that a task is submitted to. More...

#include <MultiExecutionCallback.h>

Public Member Functions

virtual void onResponse (const Member &member, const boost::shared_ptr< V > &response)=0
 Called when an execution is completed on a member. More...
 
virtual void onFailure (const Member &member, const boost::shared_ptr< exception::IException > &exception)=0
 Called when an execution is completed with an exception on a member. More...
 
virtual void onComplete (const std::map< Member, boost::shared_ptr< V > > &values, const std::map< Member, boost::shared_ptr< exception::IException > > &exceptions)=0
 Called after all executions are completed. More...
 

Detailed Description

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

MultiExecutionCallback provides notification for when an execution is completed on each member that a task is submitted to.

After all executions are completed on all submitted members, the onComplete(std::map) method is called with a map of all results.

See also
IExecutorService
ExecutionCallback

Member Function Documentation

◆ onComplete()

template<typename V>
virtual void hazelcast::client::MultiExecutionCallback< V >::onComplete ( const std::map< Member, boost::shared_ptr< V > > &  values,
const std::map< Member, boost::shared_ptr< exception::IException > > &  exceptions 
)
pure virtual

Called after all executions are completed.

Parameters
valuesmap of Member-Response pairs where no exception occured.
exceptionsThe exceptions produced by failing members.

◆ onFailure()

template<typename V>
virtual void hazelcast::client::MultiExecutionCallback< V >::onFailure ( const Member member,
const boost::shared_ptr< exception::IException > &  exception 
)
pure virtual

Called when an execution is completed with an exception on a member.

Parameters
membermember that the task is submitted to.
exceptionresult of the execution

◆ onResponse()

template<typename V>
virtual void hazelcast::client::MultiExecutionCallback< V >::onResponse ( const Member member,
const boost::shared_ptr< V > &  response 
)
pure virtual

Called when an execution is completed on a member.

Parameters
membermember that the task is submitted to.
valueresult of the execution

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