activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r381584 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
Date Tue, 28 Feb 2006 07:18:41 GMT
Author: jstrachan
Date: Mon Feb 27 23:18:36 2006
New Revision: 381584

URL: http://svn.apache.org/viewcvs?rev=381584&view=rev
Log:
minor refactor

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java?rev=381584&r1=381583&r2=381584&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Subscription.java
Mon Feb 27 23:18:36 2006
@@ -34,12 +34,16 @@
 
 public class Subscription {
     
+    public static final int AUTO_ACK = 1;
+    public static final int CLIENT_ACK = 2;
+
+    public static final String NO_ID = "~~ NO SUCH THING ~~%%@#!Q";
+
     private ActiveMQDestination destination;
-    private int ackMode = 1;
+    private int ackMode = AUTO_ACK;
     private StompWireFormat format;
 
     private final String subscriptionId;
-    public static final String NO_ID = "~~ NO SUCH THING ~~%%@#!Q";
     private final ConsumerInfo consumerInfo;
     private final LinkedList dispatchedMessages = new LinkedList();
     
@@ -94,9 +98,6 @@
     ActiveMQDestination getDestination() {
         return destination;
     }
-
-    static final int AUTO_ACK = 1;
-    static final int CLIENT_ACK = 2;
 
     public void setAckMode(int clientAck) {
         this.ackMode = clientAck;



Mime
View raw message