1 /* 2 * JORAM: Java(TM) Open Reliable Asynchronous Messaging 3 * Copyright (C) 2001 - ScalAgent Distributed Technologies 4 * Copyright (C) 1996 - Dyade 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 19 * USA. 20 * 21 * Initial developer(s): Frederic Maistre (INRIA) 22 * Contributor(s): 23 */ 24 package org.objectweb.joram.mom.proxies; 25 26 import org.objectweb.joram.shared.client.AbstractJmsReply; 27 28 29 /** 30 * A <code>SyncReply</code> is a notification used by a proxy for 31 * synchronizing a reply. 32 */ 33 class SyncReply extends fr.dyade.aaa.agent.Notification 34 { 35 /** 36 * The identifier of the client context within which which the reply will 37 * have to be sent. 38 */ 39 int key; 40 /** The reply to send. */ 41 AbstractJmsReply reply; 42 43 /** 44 * Constructs a <code>SyncReply</code> instance. 45 * 46 * @param key The identifier of the client context within which which the 47 * reply will have to be sent. 48 * @param reply The reply to send. 49 */ 50 SyncReply(int key, AbstractJmsReply reply) 51 { 52 this.reply = reply; 53 this.key = key; 54 } 55 } 56