Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
#include <coherence/net/Invocable.hpp>
Inherits Runnable.
Inherited by AbstractInvocable [virtual].
The Invocable object is a cluster-portable object that can be invoked on any set of remote members and each can optionally register a return value for the invocation.
When an Invocable object is received for execution, the order of execution is:
Public Types |
|
| typedef spec::Handle | Handle |
| Invocable Handle definition. | |
| typedef spec::View | View |
| Invocable View definition. | |
| typedef spec::Holder | Holder |
| Invocable Holder definition. | |
| typedef TypedHandle < InvocationService > |
InvocationServiceHandle |
| InvocationService Handle definition. | |
| typedef TypedHandle < const InvocationService > |
InvocationServiceView |
| InvocationService View definition. | |
Public Member Functions |
|
| virtual void | init (InvocationServiceHandle hService)=0 |
| Called by the InvocationService exactly once on this Invocable object as part of its initialization. | |
| virtual Object::Holder | getResult () const =0 |
| Determine the result from the invocation of this object. | |
| virtual void init | ( | InvocationServiceHandle | hService | ) | [pure virtual] |
Called by the InvocationService exactly once on this Invocable object as part of its initialization.
Note: implementations of the Invocable interface that store the service reference must do so only in a transient field.
| hService | the containing InvocationService |
| virtual Object::Holder getResult | ( | ) | const [pure virtual] |
Determine the result from the invocation of this object.
This method is called by the InvocationService after the run() method returns.
Implemented in AbstractInvocable.
The documentation for this class was generated from the following file: