Class StompSubscription

java.lang.Object
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 Details

    • AUTO_ACK

      public static final String AUTO_ACK
      See Also:
    • CLIENT_ACK

      public static final String CLIENT_ACK
      See Also:
    • INDIVIDUAL_ACK

      public static final String INDIVIDUAL_ACK
      See Also:
    • protocolConverter

      protected final ProtocolConverter protocolConverter
    • subscriptionId

      protected final String subscriptionId
    • consumerInfo

      protected final org.apache.activemq.command.ConsumerInfo consumerInfo
    • dispatchedMessage

      protected final Map<org.apache.activemq.command.MessageId,StompAckEntry> dispatchedMessage
    • pendingAcks

      protected final Map<String,StompAckEntry> pendingAcks
    • transactedMessages

      protected final LinkedList<StompAckEntry> transactedMessages
    • ackMode

      protected String ackMode
    • destination

      protected org.apache.activemq.command.ActiveMQDestination destination
    • transformation

      protected String transformation
  • Constructor Details

  • Method Details

    • onStompMessageNack

      public org.apache.activemq.command.MessageAck onStompMessageNack(String messageId, org.apache.activemq.command.TransactionId transactionId) throws ProtocolException
      Throws:
      ProtocolException
    • getAckMode

      public String getAckMode()
    • setAckMode

      public void setAckMode(String ackMode)
    • isAutoAck

      public boolean isAutoAck()
    • isClientAck

      public boolean isClientAck()
    • isIndividualAck

      public boolean isIndividualAck()
    • getSubscriptionId

      public String getSubscriptionId()
    • setDestination

      public void setDestination(org.apache.activemq.command.ActiveMQDestination destination)
    • getDestination

      public org.apache.activemq.command.ActiveMQDestination getDestination()
    • getConsumerInfo

      public org.apache.activemq.command.ConsumerInfo getConsumerInfo()