#include <coherence/net/Invocable.hpp>
Inherits Runnable.
Inherited by AbstractInvocable [virtual].
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.