java.lang.Object
org.apache.activemq.artemis.core.protocol.stomp.StompSession
All Implemented Interfaces:
SessionCallback

public class StompSession extends Object implements SessionCallback
  • Field Details

  • Method Details

    • begin

      public void begin()
    • isTxPending

      public boolean isTxPending()
    • end

      public void end()
    • supportsDirectDelivery

      public boolean supportsDirectDelivery()
      Specified by:
      supportsDirectDelivery in interface SessionCallback
    • isWritable

      public boolean isWritable(ReadyListener callback, Object protocolContext)
      Specified by:
      isWritable in interface SessionCallback
    • getCoreSession

      public org.apache.activemq.artemis.core.server.ServerSession getCoreSession()
    • hasCredits

      public boolean hasCredits(org.apache.activemq.artemis.core.server.ServerConsumer consumerID)
      Specified by:
      hasCredits in interface SessionCallback
    • sendProducerCreditsMessage

      public void sendProducerCreditsMessage(int credits, SimpleString address)
      Specified by:
      sendProducerCreditsMessage in interface SessionCallback
    • sendProducerCreditsFailMessage

      public void sendProducerCreditsFailMessage(int credits, SimpleString address)
      Specified by:
      sendProducerCreditsFailMessage in interface SessionCallback
    • afterDelivery

      public void afterDelivery() throws Exception
      Specified by:
      afterDelivery in interface SessionCallback
      Throws:
      Exception
    • browserFinished

      public void browserFinished(org.apache.activemq.artemis.core.server.ServerConsumer consumer)
      Specified by:
      browserFinished in interface SessionCallback
    • updateDeliveryCountAfterCancel

      public boolean updateDeliveryCountAfterCancel(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.core.server.MessageReference ref, boolean failed)
      Specified by:
      updateDeliveryCountAfterCancel in interface SessionCallback
    • sendMessage

      public int sendMessage(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.ServerConsumer consumer, int deliveryCount)
      Specified by:
      sendMessage in interface SessionCallback
    • sendLargeMessageContinuation

      public int sendLargeMessageContinuation(org.apache.activemq.artemis.core.server.ServerConsumer consumer, byte[] body, boolean continues, boolean requiresResponse)
      Specified by:
      sendLargeMessageContinuation in interface SessionCallback
    • sendLargeMessage

      public int sendLargeMessage(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.ServerConsumer consumer, long bodySize, int deliveryCount)
      Specified by:
      sendLargeMessage in interface SessionCallback
    • closed

      public void closed()
      Specified by:
      closed in interface SessionCallback
    • disconnect

      public void disconnect(org.apache.activemq.artemis.core.server.ServerConsumer consumerId, String errorDescription)
      Specified by:
      disconnect in interface SessionCallback
    • acknowledge

      public void acknowledge(String messageID, String subscriptionID) throws Exception
      Throws:
      Exception
    • addSubscription

      public StompPostReceiptFunction addSubscription(long consumerID, String subscriptionID, String clientID, String durableSubscriptionName, String destination, String selector, String ack, boolean noLocal, Integer consumerWindowSize) throws Exception
      Throws:
      Exception
    • unsubscribe

      public boolean unsubscribe(String id, String durableSubscriptionName, String clientID) throws Exception
      Throws:
      Exception
    • getConnection

      public RemotingConnection getConnection()
    • getContext

      public org.apache.activemq.artemis.core.persistence.OperationContext getContext()
    • getNoLocalSubscriptionCount

      public int getNoLocalSubscriptionCount()
    • getSubscriptionCount

      public int getSubscriptionCount()
    • sendInternal

      public void sendInternal(Message message, boolean direct) throws Exception
      Throws:
      Exception
    • sendInternalLarge

      public void sendInternalLarge(org.apache.activemq.artemis.core.message.impl.CoreMessage message, boolean direct) throws Exception
      Throws:
      Exception