KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > pept > transport > ResponseWaitingRoom


1 /*
2  * @(#)ResponseWaitingRoom.java 1.14 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.pept.transport;
9
10 import com.sun.corba.se.pept.protocol.MessageMediator;
11 import com.sun.corba.se.pept.encoding.InputObject;
12
13 /**
14  * @author Harold Carr
15  */

16 public interface ResponseWaitingRoom
17 {
18     public void registerWaiter(MessageMediator messageMediator);
19
20     // REVISIT: maybe return void (or MessageMediator).
21
public InputObject waitForResponse(MessageMediator messageMediator);
22     
23     public void responseReceived(InputObject inputObject);
24
25     public void unregisterWaiter(MessageMediator messageMediator);
26
27     public int numberRegistered();
28 }
29
30 // End of file.
31

32
Popular Tags