public interface SessionCallback
Modifier and Type | Method and Description |
---|---|
void |
afterDelivery()
This can be used to complete certain operations outside of the lock,
like acks or other operations.
|
void |
browserFinished(ServerConsumer consumer)
Some protocols (Openwire) needs a special message with the browser is finished.
|
default void |
close(boolean failed) |
void |
closed() |
void |
disconnect(ServerConsumer consumerId,
String queueName) |
boolean |
hasCredits(ServerConsumer consumerID)
This one gives a chance for Proton to have its own flow control.
|
boolean |
isWritable(ReadyListener callback) |
int |
sendLargeMessage(MessageReference reference,
ServerMessage message,
ServerConsumer consumerID,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumerID,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(MessageReference ref,
ServerMessage message,
ServerConsumer consumerID,
int deliveryCount) |
void |
sendProducerCreditsFailMessage(int credits,
SimpleString address) |
void |
sendProducerCreditsMessage(int credits,
SimpleString address) |
boolean |
updateDeliveryCountAfterCancel(ServerConsumer consumer,
MessageReference ref,
boolean failed)
Use this to updates specifics on the message after a redelivery happened.
|
boolean hasCredits(ServerConsumer consumerID)
void afterDelivery() throws Exception
Exception
boolean updateDeliveryCountAfterCancel(ServerConsumer consumer, MessageReference ref, boolean failed)
consumer
- ref
- failed
- void sendProducerCreditsMessage(int credits, SimpleString address)
void sendProducerCreditsFailMessage(int credits, SimpleString address)
int sendMessage(MessageReference ref, ServerMessage message, ServerConsumer consumerID, int deliveryCount)
int sendLargeMessage(MessageReference reference, ServerMessage message, ServerConsumer consumerID, long bodySize, int deliveryCount)
int sendLargeMessageContinuation(ServerConsumer consumerID, byte[] body, boolean continues, boolean requiresResponse)
void closed()
void disconnect(ServerConsumer consumerId, String queueName)
boolean isWritable(ReadyListener callback)
void browserFinished(ServerConsumer consumer)
default void close(boolean failed)
Copyright © 2017 JBoss by Red Hat. All rights reserved.