Class MQTTSessionCallback
- java.lang.Object
-
- org.apache.activemq.artemis.core.protocol.mqtt.MQTTSessionCallback
-
- All Implemented Interfaces:
org.apache.activemq.artemis.spi.core.protocol.SessionCallback
public class MQTTSessionCallback extends java.lang.Object implements org.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
-
Constructor Summary
Constructors Constructor Description MQTTSessionCallback(MQTTSession session, MQTTConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterDelivery()voidbrowserFinished(org.apache.activemq.artemis.core.server.ServerConsumer consumer)voidclosed()voiddisconnect(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.api.core.SimpleString queueName)booleanhasCredits(org.apache.activemq.artemis.core.server.ServerConsumer consumerID)booleanisWritable(org.apache.activemq.artemis.spi.core.remoting.ReadyListener callback, java.lang.Object protocolContext)intsendLargeMessage(org.apache.activemq.artemis.core.server.MessageReference reference, org.apache.activemq.artemis.api.core.Message message, org.apache.activemq.artemis.core.server.ServerConsumer consumer, long bodySize, int deliveryCount)intsendLargeMessageContinuation(org.apache.activemq.artemis.core.server.ServerConsumer consumerID, byte[] body, boolean continues, boolean requiresResponse)intsendMessage(org.apache.activemq.artemis.core.server.MessageReference reference, org.apache.activemq.artemis.api.core.Message message, org.apache.activemq.artemis.core.server.ServerConsumer consumer, int deliveryCount)voidsendProducerCreditsFailMessage(int credits, org.apache.activemq.artemis.api.core.SimpleString address)voidsendProducerCreditsMessage(int credits, org.apache.activemq.artemis.api.core.SimpleString address)booleansupportsDirectDelivery()booleanupdateDeliveryCountAfterCancel(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.core.server.MessageReference ref, boolean failed)
-
-
-
Constructor Detail
-
MQTTSessionCallback
public MQTTSessionCallback(MQTTSession session, MQTTConnection connection) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
supportsDirectDelivery
public boolean supportsDirectDelivery()
- Specified by:
supportsDirectDeliveryin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
isWritable
public boolean isWritable(org.apache.activemq.artemis.spi.core.remoting.ReadyListener callback, java.lang.Object protocolContext)- Specified by:
isWritablein interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
sendMessage
public int sendMessage(org.apache.activemq.artemis.core.server.MessageReference reference, org.apache.activemq.artemis.api.core.Message message, org.apache.activemq.artemis.core.server.ServerConsumer consumer, int deliveryCount)- Specified by:
sendMessagein interfaceorg.apache.activemq.artemis.spi.core.protocol.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:
updateDeliveryCountAfterCancelin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
sendLargeMessageContinuation
public int sendLargeMessageContinuation(org.apache.activemq.artemis.core.server.ServerConsumer consumerID, byte[] body, boolean continues, boolean requiresResponse)- Specified by:
sendLargeMessageContinuationin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
sendLargeMessage
public int sendLargeMessage(org.apache.activemq.artemis.core.server.MessageReference reference, org.apache.activemq.artemis.api.core.Message message, org.apache.activemq.artemis.core.server.ServerConsumer consumer, long bodySize, int deliveryCount)- Specified by:
sendLargeMessagein interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
disconnect
public void disconnect(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.api.core.SimpleString queueName)- Specified by:
disconnectin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
afterDelivery
public void afterDelivery() throws java.lang.Exception- Specified by:
afterDeliveryin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback- Throws:
java.lang.Exception
-
browserFinished
public void browserFinished(org.apache.activemq.artemis.core.server.ServerConsumer consumer)
- Specified by:
browserFinishedin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
hasCredits
public boolean hasCredits(org.apache.activemq.artemis.core.server.ServerConsumer consumerID)
- Specified by:
hasCreditsin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
sendProducerCreditsMessage
public void sendProducerCreditsMessage(int credits, org.apache.activemq.artemis.api.core.SimpleString address)- Specified by:
sendProducerCreditsMessagein interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
sendProducerCreditsFailMessage
public void sendProducerCreditsFailMessage(int credits, org.apache.activemq.artemis.api.core.SimpleString address)- Specified by:
sendProducerCreditsFailMessagein interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
closed
public void closed()
- Specified by:
closedin interfaceorg.apache.activemq.artemis.spi.core.protocol.SessionCallback
-
-