public class MQTTSessionCallback extends Object implements SessionCallback
| Constructor and Description |
|---|
MQTTSessionCallback(MQTTSession session,
MQTTConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDelivery() |
void |
browserFinished(ServerConsumer consumer) |
void |
closed() |
void |
disconnect(ServerConsumer consumer,
SimpleString queueName) |
boolean |
hasCredits(ServerConsumer consumerID) |
boolean |
isWritable(ReadyListener callback,
Object protocolContext) |
int |
sendLargeMessage(MessageReference reference,
Message message,
ServerConsumer consumer,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumerID,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(MessageReference reference,
Message message,
ServerConsumer consumer,
int deliveryCount) |
void |
sendProducerCreditsFailMessage(int credits,
SimpleString address) |
void |
sendProducerCreditsMessage(int credits,
SimpleString address) |
boolean |
supportsDirectDelivery() |
boolean |
updateDeliveryCountAfterCancel(ServerConsumer consumer,
MessageReference ref,
boolean failed) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getCurrentTransactionpublic MQTTSessionCallback(MQTTSession session, MQTTConnection connection) throws Exception
Exceptionpublic boolean supportsDirectDelivery()
supportsDirectDelivery in interface SessionCallbackpublic boolean isWritable(ReadyListener callback, Object protocolContext)
isWritable in interface SessionCallbackpublic int sendMessage(MessageReference reference, Message message, ServerConsumer consumer, int deliveryCount)
sendMessage in interface SessionCallbackpublic boolean updateDeliveryCountAfterCancel(ServerConsumer consumer, MessageReference ref, boolean failed)
updateDeliveryCountAfterCancel in interface SessionCallbackpublic int sendLargeMessageContinuation(ServerConsumer consumerID, byte[] body, boolean continues, boolean requiresResponse)
sendLargeMessageContinuation in interface SessionCallbackpublic int sendLargeMessage(MessageReference reference, Message message, ServerConsumer consumer, long bodySize, int deliveryCount)
sendLargeMessage in interface SessionCallbackpublic void disconnect(ServerConsumer consumer, SimpleString queueName)
disconnect in interface SessionCallbackpublic void afterDelivery()
throws Exception
afterDelivery in interface SessionCallbackExceptionpublic void browserFinished(ServerConsumer consumer)
browserFinished in interface SessionCallbackpublic boolean hasCredits(ServerConsumer consumerID)
hasCredits in interface SessionCallbackpublic void sendProducerCreditsMessage(int credits,
SimpleString address)
sendProducerCreditsMessage in interface SessionCallbackpublic void sendProducerCreditsFailMessage(int credits,
SimpleString address)
sendProducerCreditsFailMessage in interface SessionCallbackpublic void closed()
closed in interface SessionCallbackCopyright © 2022 The Apache Software Foundation. All rights reserved.