Class AMQPSessionContext

java.lang.Object
org.apache.activemq.artemis.protocol.amqp.proton.ProtonInitializable
org.apache.activemq.artemis.protocol.amqp.proton.AMQPSessionContext

public class AMQPSessionContext extends ProtonInitializable
  • Field Details

  • Constructor Details

    • AMQPSessionContext

      public AMQPSessionContext(AMQPSessionCallback sessionSPI, AMQPConnectionContext connection, org.apache.qpid.proton.engine.Session session, org.apache.activemq.artemis.core.server.ActiveMQServer server)
  • Method Details

    • getSessionSPI

      public AMQPSessionCallback getSessionSPI()
    • getAMQPConnectionContext

      public AMQPConnectionContext getAMQPConnectionContext()
    • getSession

      public org.apache.qpid.proton.engine.Session getSession()
    • getServer

      public org.apache.activemq.artemis.core.server.ActiveMQServer getServer()
    • initialize

      public void initialize() throws Exception
      Specified by:
      initialize in class ProtonInitializable
      Throws:
      Exception
    • disconnect

      public void disconnect(Object consumer, String queueName)
    • getTag

      public byte[] getTag()
    • replaceTag

      public void replaceTag(byte[] tag)
    • close

      public void close()
    • removeReceiver

      public void removeReceiver(org.apache.qpid.proton.engine.Receiver receiver)
    • addTransactionHandler

      public void addTransactionHandler(org.apache.qpid.proton.amqp.transaction.Coordinator coordinator, org.apache.qpid.proton.engine.Receiver receiver)
    • addFederationEventDispatcher

      public void addFederationEventDispatcher(org.apache.qpid.proton.engine.Sender sender) throws Exception
      Throws:
      Exception
    • addFederationAddressSender

      public void addFederationAddressSender(org.apache.qpid.proton.engine.Sender sender) throws Exception
      Throws:
      Exception
    • addFederationQueueSender

      public void addFederationQueueSender(org.apache.qpid.proton.engine.Sender sender) throws Exception
      Throws:
      Exception
    • addSender

      public void addSender(org.apache.qpid.proton.engine.Sender sender) throws Exception
      Throws:
      Exception
    • addSender

      public void addSender(org.apache.qpid.proton.engine.Sender sender, SenderController senderController) throws Exception
      Throws:
      Exception
    • addSender

      public void addSender(org.apache.qpid.proton.engine.Sender sender, ProtonServerSenderContext protonSender) throws Exception
      Throws:
      Exception
    • addSender

      public <T extends ProtonServerSenderContext> T addSender(org.apache.qpid.proton.engine.Sender sender, BiFunction<AMQPSessionContext, org.apache.qpid.proton.engine.Sender, T> senderBuilder) throws Exception
      Throws:
      Exception
    • removeSender

      public void removeSender(org.apache.qpid.proton.engine.Sender sender) throws ActiveMQAMQPException
      Throws:
      ActiveMQAMQPException
    • addReplicaTarget

      public void addReplicaTarget(org.apache.qpid.proton.engine.Receiver receiver) throws Exception
      Throws:
      Exception
    • addFederationEventProcessor

      public void addFederationEventProcessor(org.apache.qpid.proton.engine.Receiver receiver) throws Exception
      Throws:
      Exception
    • addFederationCommandProcessor

      public void addFederationCommandProcessor(org.apache.qpid.proton.engine.Receiver receiver) throws Exception
      Throws:
      Exception
    • addReceiver

      public void addReceiver(org.apache.qpid.proton.engine.Receiver receiver) throws Exception
      Throws:
      Exception
    • addReceiver

      public <T extends ProtonAbstractReceiver> T addReceiver(org.apache.qpid.proton.engine.Receiver receiver, BiFunction<AMQPSessionContext, org.apache.qpid.proton.engine.Receiver, T> receiverBuilder) throws Exception
      Throws:
      Exception
    • getReceiverCount

      public int getReceiverCount()
    • getReceivers

      public Map<org.apache.qpid.proton.engine.Receiver, ProtonAbstractReceiver> getReceivers()
    • getSenderCount

      public int getSenderCount()