mirror of https://github.com/apache/activemq.git
minor refactor
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@381584 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b7d5fa07d1
commit
895a15761f
|
@ -34,12 +34,16 @@ import org.apache.activemq.command.RemoveInfo;
|
|||
|
||||
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();
|
||||
|
||||
|
@ -95,9 +99,6 @@ public class Subscription {
|
|||
return destination;
|
||||
}
|
||||
|
||||
static final int AUTO_ACK = 1;
|
||||
static final int CLIENT_ACK = 2;
|
||||
|
||||
public void setAckMode(int clientAck) {
|
||||
this.ackMode = clientAck;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue