org.objectweb.jonathan.protocols.api
Interface ReplyInterface
public interface ReplyInterface
A ReplyInterface holds the reply to a request. Reply interfaces are created
two-ways invocations are performed.
boolean | available() - Returns true if a (possibly exceptional) reply has arrived.
|
UnMarshaller | listen() - Returns a message containing the reply to the request.
|
available
public boolean available()
Returns true if a (possibly exceptional) reply has arrived.
If
available
returns true, a call to
listen
is non-blocking.
- true if a (possibly exceptional) reply has arrived.
listen
public UnMarshaller listen()
throws ServerException,
ForwardException,
JonathanException
Returns a message containing the reply to the request.
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
.
- a message containing the reply to the request.
ServerException
- if the server has thrown an application level
exception;