public final class CoreSessionCallback extends Object implements SessionCallback
| Constructor and Description |
|---|
CoreSessionCallback(String name,
ProtocolManager protocolManager,
Channel channel,
RemotingConnection connection) |
| 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.
|
void |
close(boolean failed) |
void |
closed() |
void |
disconnect(ServerConsumer consumerId,
String queueName) |
boolean |
hasCredits(ServerConsumer consumer)
This one gives a chance for Proton to have its own flow control.
|
boolean |
isWritable(ReadyListener callback) |
int |
sendLargeMessage(MessageReference ref,
ServerMessage message,
ServerConsumer consumer,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumer,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(MessageReference ref,
ServerMessage message,
ServerConsumer consumer,
int deliveryCount) |
void |
sendProducerCreditsFailMessage(int credits,
SimpleString address) |
void |
sendProducerCreditsMessage(int credits,
SimpleString address) |
CoreSessionCallback |
setSessionHandler(ServerSessionPacketHandler handler) |
boolean |
updateDeliveryCountAfterCancel(ServerConsumer consumer,
MessageReference ref,
boolean failed)
Use this to updates specifics on the message after a redelivery happened.
|
public CoreSessionCallback(String name, ProtocolManager protocolManager, Channel channel, RemotingConnection connection)
public CoreSessionCallback setSessionHandler(ServerSessionPacketHandler handler)
public void close(boolean failed)
close in interface SessionCallbackpublic boolean isWritable(ReadyListener callback)
isWritable in interface SessionCallbackpublic boolean updateDeliveryCountAfterCancel(ServerConsumer consumer, MessageReference ref, boolean failed)
SessionCallbackupdateDeliveryCountAfterCancel in interface SessionCallbackpublic int sendLargeMessage(MessageReference ref, ServerMessage message, ServerConsumer consumer, long bodySize, int deliveryCount)
sendLargeMessage in interface SessionCallbackpublic int sendLargeMessageContinuation(ServerConsumer consumer, byte[] body, boolean continues, boolean requiresResponse)
sendLargeMessageContinuation in interface SessionCallbackpublic int sendMessage(MessageReference ref, ServerMessage message, ServerConsumer consumer, int deliveryCount)
sendMessage in interface SessionCallbackpublic void sendProducerCreditsMessage(int credits,
SimpleString address)
sendProducerCreditsMessage in interface SessionCallbackpublic void browserFinished(ServerConsumer consumer)
SessionCallbackbrowserFinished in interface SessionCallbackpublic void afterDelivery()
throws Exception
SessionCallbackafterDelivery in interface SessionCallbackExceptionpublic void sendProducerCreditsFailMessage(int credits,
SimpleString address)
sendProducerCreditsFailMessage in interface SessionCallbackpublic void closed()
closed in interface SessionCallbackpublic void disconnect(ServerConsumer consumerId, String queueName)
disconnect in interface SessionCallbackpublic boolean hasCredits(ServerConsumer consumer)
SessionCallbackhasCredits in interface SessionCallbackCopyright © 2018 JBoss by Red Hat. All rights reserved.