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,
SimpleString queueName) |
boolean |
hasCredits(ServerConsumer consumerID)
This one gives a chance for Proton to have its own flow control.
|
boolean |
isWritable(ReadyListener callback,
Object protocolContext) |
int |
sendLargeMessage(MessageReference reference,
Message message,
ServerConsumer consumerID,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumerID,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(MessageReference ref,
Message message,
ServerConsumer consumerID,
int deliveryCount) |
void |
sendProducerCreditsFailMessage(int credits,
SimpleString address) |
void |
sendProducerCreditsMessage(int credits,
SimpleString address) |
default boolean |
supportsDirectDelivery()
A requirement to do direct delivery is:
no extra locking required at the protocol layer.
|
boolean |
updateDeliveryCountAfterCancel(ServerConsumer consumer,
MessageReference ref,
boolean failed)
Use this to updates specifics on the message after a redelivery happened.
|
default boolean supportsDirectDelivery()
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, Message message, ServerConsumer consumerID, int deliveryCount)
int sendLargeMessage(MessageReference reference, Message message, ServerConsumer consumerID, long bodySize, int deliveryCount)
int sendLargeMessageContinuation(ServerConsumer consumerID, byte[] body, boolean continues, boolean requiresResponse)
void closed()
void disconnect(ServerConsumer consumerId, SimpleString queueName)
boolean isWritable(ReadyListener callback, Object protocolContext)
void browserFinished(ServerConsumer consumer)
default void close(boolean failed)
Copyright © 2018 JBoss by Red Hat. All rights reserved.