org.apache.activemq.transport.stomp
Class StompSubscription

java.lang.Object
  extended by org.apache.activemq.transport.stomp.StompSubscription
Direct Known Subclasses:
StompQueueBrowserSubscription

public class StompSubscription
extends Object

Keeps track of the STOMP subscription so that acking is correctly done.

Author:
chirino

Field Summary
protected  String ackMode
           
static String AUTO_ACK
           
static String CLIENT_ACK
           
protected  ConsumerInfo consumerInfo
           
protected  ActiveMQDestination destination
           
protected  LinkedHashMap<MessageId,MessageDispatch> dispatchedMessage
           
static String INDIVIDUAL_ACK
           
protected  ProtocolConverter protocolConverter
           
protected  String subscriptionId
           
protected  String transformation
           
protected  LinkedList<MessageDispatch> unconsumedMessage
           
 
Constructor Summary
StompSubscription(ProtocolConverter stompTransport, String subscriptionId, ConsumerInfo consumerInfo, String transformation)
           
 
Method Summary
 String getAckMode()
           
 ConsumerInfo getConsumerInfo()
           
 ActiveMQDestination getDestination()
           
 String getSubscriptionId()
           
 MessageAck onStompMessageNack(String messageId, TransactionId transactionId)
           
 void setAckMode(String ackMode)
           
 void setDestination(ActiveMQDestination destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_ACK

public static final String AUTO_ACK
See Also:
Constant Field Values

CLIENT_ACK

public static final String CLIENT_ACK
See Also:
Constant Field Values

INDIVIDUAL_ACK

public static final String INDIVIDUAL_ACK
See Also:
Constant Field Values

protocolConverter

protected final ProtocolConverter protocolConverter

subscriptionId

protected final String subscriptionId

consumerInfo

protected final ConsumerInfo consumerInfo

dispatchedMessage

protected final LinkedHashMap<MessageId,MessageDispatch> dispatchedMessage

unconsumedMessage

protected final LinkedList<MessageDispatch> unconsumedMessage

ackMode

protected String ackMode

destination

protected ActiveMQDestination destination

transformation

protected String transformation
Constructor Detail

StompSubscription

public StompSubscription(ProtocolConverter stompTransport,
                         String subscriptionId,
                         ConsumerInfo consumerInfo,
                         String transformation)
Method Detail

onStompMessageNack

public MessageAck onStompMessageNack(String messageId,
                                     TransactionId transactionId)
                              throws ProtocolException
Throws:
ProtocolException

getAckMode

public String getAckMode()

setAckMode

public void setAckMode(String ackMode)

getSubscriptionId

public String getSubscriptionId()

setDestination

public void setDestination(ActiveMQDestination destination)

getDestination

public ActiveMQDestination getDestination()

getConsumerInfo

public ConsumerInfo getConsumerInfo()


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.