public interface ReplyInterface
Modifier and Type | Method and Description |
---|---|
boolean |
available()
Returns true if a (possibly exceptional) reply has arrived.
|
UnMarshaller |
listen()
Returns a message containing the reply to the request.
|
UnMarshaller listen() throws ServerException, ForwardException, org.objectweb.jonathan.apis.kernel.JonathanException
This method blocks until the reply is available. It is the responsibility of the caller to make sure that the returned message will be properly .
ServerException
- if the server has thrown an application level
exception;ForwardException
- if the server has moved;org.objectweb.jonathan.apis.kernel.JonathanException
- if another exception has been raised.boolean available()
If available
returns true, a call to
listen
is non-blocking.