|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AsynchronousApplicationInstance
Describes the contract to implement the runtime behaviour of an asynchronous application type. It contains the callbacks the CARNOT engine needs to sucessfully run an asynchronous application
| Method Summary | |
|---|---|
boolean |
isReceiving()
Indicates that the instance will implement RECEIVE behaviour. |
boolean |
isSending()
Indicates that the instance will implement SEND behaviour. |
Map |
receive(Map data,
Iterator outDataTypes)
Callback when the corresponding activity instance is awakened from the HIBERNATED state. |
void |
send()
Callback to make an asynchronous call. |
| Methods inherited from interface org.eclipse.stardust.engine.core.spi.extensions.runtime.ApplicationInstance |
|---|
bootstrap, cleanup, getOutAccessPointValue, setInAccessPointValue |
| Method Detail |
|---|
void send()
throws InvocationTargetException
InvocationTargetException - Any exception thrown while attempting to send has to be delivered via
this exception.
Map receive(Map data,
Iterator outDataTypes)
HIBERNATED state.
data - The data received.outDataTypes - A set of AccessPointBean names to be expected as return values.
This is filled by the CARNOT engine and is an optimization hint to prevent
the application instance to evaluate all possible OUT AccessPoints.
boolean isSending()
true if the the application provides asynchronous send
functionality, false if not.boolean isReceiving()
true if the the application provides asynchronous receive
functionality, false if not.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||