org/objectweb/joram/mom/notifications/AbstractReply.java

00001 /*
00002  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
00003  * Copyright (C) 2001 - ScalAgent Distributed Technologies
00004  * Copyright (C) 1996 - Dyade
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  * 
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA.
00020  *
00021  * Initial developer(s): Frederic Maistre (INRIA)
00022  * Contributor(s):
00023  */
00024 package org.objectweb.joram.mom.notifications;
00025 
00030 public abstract class AbstractReply extends AbstractNotification
00031 {
00036   private int correlationId = -1;
00037 
00038 
00045   public AbstractReply(int clientContext, int correlationId)
00046   {
00047     super(clientContext);
00048     this.correlationId = correlationId;
00049   }
00050 
00054   public AbstractReply()
00055   {}
00056 
00057 
00059   public int getCorrelationId()
00060   {
00061     return correlationId;
00062   }
00063 
00072   public StringBuffer toString(StringBuffer output) {
00073     output.append('(');
00074     super.toString(output);
00075     output.append(", correlationId=").append(correlationId);
00076     output.append(')');
00077 
00078     return output;
00079   }
00080 }

Generated on Tue Sep 16 16:14:23 2008 for joram by  doxygen 1.5.0