org.jacorb.orb

Class ReplyReceiver

public class ReplyReceiver extends ReplyPlaceholder implements Configurable

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.33 2006/08/29 15:02:17 alphonse.bendt Exp $

Author: Andre Spiegel

Constructor Summary
ReplyReceiver(Delegate delegate, String operation, UtcT replyEndTime, ClientInterceptorHandler interceptors, ReplyHandler replyHandler)
Method Summary
voidconfigure(Configuration configuration)
ReplyInputStreamgetReply()
This method blocks until a reply becomes available.
voidreplyReceived(MessageInputStream in)

Constructor Detail

ReplyReceiver

public ReplyReceiver(Delegate delegate, String operation, UtcT replyEndTime, ClientInterceptorHandler interceptors, ReplyHandler replyHandler)

Method Detail

configure

public void configure(Configuration configuration)

getReply

public ReplyInputStream getReply()
This method blocks until a reply becomes available. If the reply contains any exceptions, they are rethrown.

replyReceived

public void replyReceived(MessageInputStream in)