org.jacorb.orb
Class ReplyReceiver
java.lang.Object
org.jacorb.orb.giop.ReplyPlaceholder
org.jacorb.orb.ReplyReceiver
- public class ReplyReceiver
- extends ReplyPlaceholder
A special ReplyPlaceholder that receives replies to normal requests,
either synchronously or asynchronously. A ReplyReceiver
handles all ORB-internal work that needs to be done for the reply,
such as checking for exceptions and invoking the interceptors.
The client stub can either do a blocking wait on the ReplyReceiver
(via getReply()), or a ReplyHandler can be supplied when the
ReplyReceiver is created; then the reply is delivered to that
ReplyHandler.
- Version:
- $Id: ReplyReceiver.java,v 1.19 2003/12/19 12:30:31 nick.cross Exp $
- Author:
- Andre Spiegel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplyReceiver
public ReplyReceiver(Delegate delegate,
java.lang.String operation,
UtcT replyEndTime,
ClientInterceptorHandler interceptors,
ReplyHandler replyHandler)
replyReceived
public void replyReceived(MessageInputStream in)
- Overrides:
replyReceived
in class ReplyPlaceholder
getReply
public ReplyInputStream getReply()
throws RemarshalException,
ApplicationException
- This method blocks until a reply becomes available.
If the reply contains any exceptions, they are rethrown.
- Throws:
RemarshalException
ApplicationException