ResponseWaitingRoom.java revision 608:7e06bf1dcb09
1238384Sjkim/* 2238384Sjkim * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved. 3238384Sjkim * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4238384Sjkim * 5238384Sjkim * This code is free software; you can redistribute it and/or modify it 6238384Sjkim * under the terms of the GNU General Public License version 2 only, as 7238384Sjkim * published by the Free Software Foundation. Oracle designates this 8238384Sjkim * particular file as subject to the "Classpath" exception as provided 9238384Sjkim * by Oracle in the LICENSE file that accompanied this code. 10238384Sjkim * 11238384Sjkim * This code is distributed in the hope that it will be useful, but WITHOUT 12238384Sjkim * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13238384Sjkim * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14238384Sjkim * version 2 for more details (a copy is included in the LICENSE file that 15238384Sjkim * accompanied this code). 16238384Sjkim * 17238384Sjkim * You should have received a copy of the GNU General Public License version 18238384Sjkim * 2 along with this work; if not, write to the Free Software Foundation, 19238384Sjkim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20238384Sjkim * 21238384Sjkim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22238384Sjkim * or visit www.oracle.com if you need additional information or have any 23238384Sjkim * questions. 24238384Sjkim */ 25238384Sjkim 26238384Sjkimpackage com.sun.corba.se.pept.transport; 27238384Sjkim 28238384Sjkimimport com.sun.corba.se.pept.protocol.MessageMediator; 29238384Sjkimimport com.sun.corba.se.pept.encoding.InputObject; 30238384Sjkim 31238384Sjkim/** 32238384Sjkim * @author Harold Carr 33238384Sjkim */ 34238384Sjkimpublic interface ResponseWaitingRoom 35238384Sjkim{ 36238384Sjkim public void registerWaiter(MessageMediator messageMediator); 37238384Sjkim 38238384Sjkim // REVISIT: maybe return void (or MessageMediator). 39238384Sjkim public InputObject waitForResponse(MessageMediator messageMediator); 40238384Sjkim 41238384Sjkim public void responseReceived(InputObject inputObject); 42238384Sjkim 43238384Sjkim public void unregisterWaiter(MessageMediator messageMediator); 44238384Sjkim 45238384Sjkim public int numberRegistered(); 46238384Sjkim} 47238384Sjkim 48238384Sjkim// End of file. 49238384Sjkim