Class MQTTSessionCallback

    • Method Detail

      • sendMessage

        public int sendMessage​(org.apache.activemq.artemis.core.server.MessageReference reference,
                               Message message,
                               org.apache.activemq.artemis.core.server.ServerConsumer consumer,
                               int deliveryCount)
        Specified by:
        sendMessage 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
      • sendLargeMessageContinuation

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

        public int sendLargeMessage​(org.apache.activemq.artemis.core.server.MessageReference reference,
                                    Message message,
                                    org.apache.activemq.artemis.core.server.ServerConsumer consumer,
                                    long bodySize,
                                    int deliveryCount)
        Specified by:
        sendLargeMessage in interface SessionCallback
      • disconnect

        public void disconnect​(org.apache.activemq.artemis.core.server.ServerConsumer consumer,
                               String errorMessage)
        Specified by:
        disconnect in interface SessionCallback
      • browserFinished

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

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

        public boolean hasCredits​(org.apache.activemq.artemis.core.server.ServerConsumer consumerID,
                                  org.apache.activemq.artemis.core.server.MessageReference ref)
        Specified by:
        hasCredits in interface SessionCallback