public class ProtonSessionIntegrationCallback extends Object implements AMQPSessionCallback, SessionCallback
| Modifier and Type | Field and Description |
|---|---|
protected IDGenerator |
consumerIDGenerator |
| Constructor and Description |
|---|
ProtonSessionIntegrationCallback(ActiveMQProtonConnectionCallback protonSPI,
ProtonProtocolManager manager,
AMQPConnectionContext connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(Object brokerConsumer,
Object message) |
void |
addReadyListener(ReadyListener listener) |
void |
cancel(Object brokerConsumer,
Object message,
boolean updateCounts) |
void |
close() |
void |
closed() |
void |
closeSender(Object brokerConsumer) |
void |
commitCurrentTX() |
Object |
createSender(ProtonPlugSender protonSender,
String queue,
String filer,
boolean browserOnly) |
void |
createTemporaryQueue(String queueName) |
void |
disconnect(ServerConsumer consumer,
String queueName) |
org.apache.qpid.proton.message.ProtonJMessage |
encodeMessage(Object message,
int deliveryCount) |
org.apache.qpid.proton.amqp.Binary |
getCurrentTXID() |
boolean |
hasCredits(ServerConsumer consumer) |
void |
init(AMQPSessionContext protonSession,
SASLResult saslResult) |
void |
onFlowConsumer(Object consumer,
int credits) |
boolean |
queueQuery(String queueName) |
void |
removeReadyListener(ReadyListener listener) |
void |
resumeDelivery(Object consumer) |
void |
rollbackCurrentTX() |
int |
sendLargeMessage(ServerMessage message,
ServerConsumer consumer,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumer,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(ServerMessage message,
ServerConsumer consumer,
int deliveryCount) |
void |
sendProducerCreditsFailMessage(int credits,
SimpleString address) |
void |
sendProducerCreditsMessage(int credits,
SimpleString address) |
void |
serverSend(org.apache.qpid.proton.engine.Receiver receiver,
org.apache.qpid.proton.engine.Delivery delivery,
String address,
int messageFormat,
io.netty.buffer.ByteBuf messageEncoded) |
void |
start() |
void |
startSender(Object brokerConsumer) |
String |
tempQueueName() |
protected final IDGenerator consumerIDGenerator
public ProtonSessionIntegrationCallback(ActiveMQProtonConnectionCallback protonSPI, ProtonProtocolManager manager, AMQPConnectionContext connection)
public void onFlowConsumer(Object consumer, int credits)
onFlowConsumer in interface AMQPSessionCallbackpublic void init(AMQPSessionContext protonSession, SASLResult saslResult) throws Exception
init in interface AMQPSessionCallbackExceptionpublic void start()
start in interface AMQPSessionCallbackpublic Object createSender(ProtonPlugSender protonSender, String queue, String filer, boolean browserOnly) throws Exception
createSender in interface AMQPSessionCallbackExceptionpublic void startSender(Object brokerConsumer) throws Exception
startSender in interface AMQPSessionCallbackExceptionpublic void createTemporaryQueue(String queueName) throws Exception
createTemporaryQueue in interface AMQPSessionCallbackExceptionpublic boolean queueQuery(String queueName) throws Exception
queueQuery in interface AMQPSessionCallbackExceptionpublic void closeSender(Object brokerConsumer) throws Exception
closeSender in interface AMQPSessionCallbackExceptionpublic org.apache.qpid.proton.message.ProtonJMessage encodeMessage(Object message, int deliveryCount) throws Exception
encodeMessage in interface AMQPSessionCallbackExceptionpublic org.apache.qpid.proton.amqp.Binary getCurrentTXID()
getCurrentTXID in interface AMQPSessionCallbackpublic String tempQueueName()
tempQueueName in interface AMQPSessionCallbackpublic void commitCurrentTX()
throws Exception
commitCurrentTX in interface AMQPSessionCallbackExceptionpublic void rollbackCurrentTX()
throws Exception
rollbackCurrentTX in interface AMQPSessionCallbackExceptionpublic void close()
throws Exception
close in interface AMQPSessionCallbackExceptionpublic void ack(Object brokerConsumer, Object message) throws Exception
ack in interface AMQPSessionCallbackExceptionpublic void cancel(Object brokerConsumer, Object message, boolean updateCounts) throws Exception
cancel in interface AMQPSessionCallbackExceptionpublic void resumeDelivery(Object consumer)
resumeDelivery in interface AMQPSessionCallbackpublic void serverSend(org.apache.qpid.proton.engine.Receiver receiver,
org.apache.qpid.proton.engine.Delivery delivery,
String address,
int messageFormat,
io.netty.buffer.ByteBuf messageEncoded)
throws Exception
serverSend in interface AMQPSessionCallbackExceptionpublic void sendProducerCreditsMessage(int credits,
SimpleString address)
sendProducerCreditsMessage in interface SessionCallbackpublic void sendProducerCreditsFailMessage(int credits,
SimpleString address)
sendProducerCreditsFailMessage in interface SessionCallbackpublic int sendMessage(ServerMessage message, ServerConsumer consumer, int deliveryCount)
sendMessage in interface SessionCallbackpublic int sendLargeMessage(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 void closed()
closed in interface SessionCallbackpublic void addReadyListener(ReadyListener listener)
addReadyListener in interface SessionCallbackpublic void removeReadyListener(ReadyListener listener)
removeReadyListener in interface SessionCallbackpublic void disconnect(ServerConsumer consumer, String queueName)
disconnect in interface SessionCallbackpublic boolean hasCredits(ServerConsumer consumer)
hasCredits in interface SessionCallbackCopyright © 2015 The Apache Software Foundation. All Rights Reserved.