|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRequest
An object that contains a request sent to a flow. Instances of this interface can be use to send a response for a given request.
Process.serve(Object)| Method Summary | |
|---|---|
boolean |
needResponse()
Tells whether the sender requires or not a response. |
Object |
request()
The object that represents the request. |
void |
response(Object response)
Sends the response, resuming the flow that is waiting for it. |
| Method Detail |
|---|
boolean needResponse()
true, the sender is likely to be blocked, waiting
for a response.
Object request()
message argument of methods such as
Process.send(Object, Object) or
Process.call(Object, Object).
void response(Object response)
needResponse() is true,
otherwise an exception is thrown. Once called, this method causes further
invocations to needResponse() to return false.
response - The response to be sent to the flow that issued the
request. This object will be the returned value of the ongoing
Process.call(Object, Object).
IllegalStateException - If there is no flow waiting for the
response.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||