[jboss-cvs] JBoss Messaging SVN: r3648 - trunk/src/main/org/jboss/messaging/core/remoting/wireformat.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jan 30 12:45:49 EST 2008
Author: clebert.suconic at jboss.com
Date: 2008-01-30 12:45:49 -0500 (Wed, 30 Jan 2008)
New Revision: 3648
Added:
trunk/src/main/org/jboss/messaging/core/remoting/wireformat/Packet.java
Log:
JBMESSAGING-1225 - Interceptors cleanup (Adding missing class)
Added: trunk/src/main/org/jboss/messaging/core/remoting/wireformat/Packet.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/remoting/wireformat/Packet.java (rev 0)
+++ trunk/src/main/org/jboss/messaging/core/remoting/wireformat/Packet.java 2008-01-30 17:45:49 UTC (rev 3648)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+
+package org.jboss.messaging.core.remoting.wireformat;
+
+public interface Packet
+{
+ // Public --------------------------------------------------------
+
+ void setCorrelationID(long correlationID);
+
+ long getCorrelationID();
+
+ PacketType getType();
+
+ String getTargetID();
+
+ void setTargetID(String targetID);
+
+ void setCallbackID(String callbackID);
+
+ String getCallbackID();
+
+ void setOneWay(boolean oneWay);
+
+ boolean isOneWay();
+
+ void normalize(Packet other);
+
+ /**
+ * An AbstractPacket is a request if it has a target ID and a correlation ID
+ */
+ public boolean isRequest();
+
+
+}
Property changes on: trunk/src/main/org/jboss/messaging/core/remoting/wireformat/Packet.java
___________________________________________________________________
Name: svn:keywords
+ Id LastChangedDate Author Revision
More information about the jboss-cvs-commits
mailing list