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,
SimpleString queueName) |
boolean |
hasCredits(ServerConsumer consumer)
This one gives a chance for Proton to have its own flow control.
|
boolean |
isWritable(ReadyListener callback,
Object protocolContext) |
int |
sendLargeMessage(MessageReference ref,
Message message,
ServerConsumer consumer,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumer,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(MessageReference ref,
Message 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentTransaction, supportsDirectDelivery
public CoreSessionCallback(String name, ProtocolManager protocolManager, Channel channel, RemotingConnection connection)
public CoreSessionCallback setSessionHandler(ServerSessionPacketHandler handler)
public void close(boolean failed)
close
in interface SessionCallback
public boolean isWritable(ReadyListener callback, Object protocolContext)
isWritable
in interface SessionCallback
public boolean updateDeliveryCountAfterCancel(ServerConsumer consumer, MessageReference ref, boolean failed)
SessionCallback
updateDeliveryCountAfterCancel
in interface SessionCallback
public int sendLargeMessage(MessageReference ref, Message message, ServerConsumer consumer, long bodySize, int deliveryCount)
sendLargeMessage
in interface SessionCallback
public int sendLargeMessageContinuation(ServerConsumer consumer, byte[] body, boolean continues, boolean requiresResponse)
sendLargeMessageContinuation
in interface SessionCallback
public int sendMessage(MessageReference ref, Message message, ServerConsumer consumer, int deliveryCount)
sendMessage
in interface SessionCallback
public void sendProducerCreditsMessage(int credits, SimpleString address)
sendProducerCreditsMessage
in interface SessionCallback
public void browserFinished(ServerConsumer consumer)
SessionCallback
browserFinished
in interface SessionCallback
public void afterDelivery() throws Exception
SessionCallback
afterDelivery
in interface SessionCallback
Exception
public void sendProducerCreditsFailMessage(int credits, SimpleString address)
sendProducerCreditsFailMessage
in interface SessionCallback
public void closed()
closed
in interface SessionCallback
public void disconnect(ServerConsumer consumerId, SimpleString queueName)
disconnect
in interface SessionCallback
public boolean hasCredits(ServerConsumer consumer)
SessionCallback
hasCredits
in interface SessionCallback
Copyright © 2021 JBoss by Red Hat. All rights reserved.