public class ProtonServerSenderContext extends ProtonInitializable implements ProtonDeliveryHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected AMQPConnectionContext |
connection |
protected AMQPSessionContext |
protonSession |
protected org.apache.qpid.proton.engine.Sender |
sender |
protected AMQPSessionCallback |
sessionSPI |
| Constructor and Description |
|---|
ProtonServerSenderContext(AMQPConnectionContext connection,
org.apache.qpid.proton.engine.Sender sender,
AMQPSessionContext protonSession,
AMQPSessionCallback server) |
ProtonServerSenderContext(AMQPConnectionContext connection,
org.apache.qpid.proton.engine.Sender sender,
AMQPSessionContext protonSession,
AMQPSessionCallback server,
SenderController senderController) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkState() |
void |
close(boolean remoteLinkClose) |
void |
close(org.apache.qpid.proton.amqp.transport.ErrorCondition condition) |
int |
deliverMessage(MessageReference messageReference,
ServerConsumer consumer)
handle an out going message from ActiveMQ Artemis, send via the Proton Sender
|
protected void |
doAck(Message message) |
Object |
getBrokerConsumer() |
protected String |
getClientId() |
org.apache.qpid.proton.engine.Sender |
getSender() |
AMQPSessionContext |
getSessionContext() |
boolean |
hasCredits() |
void |
initialize()
create the actual underlying ActiveMQ Artemis Server Consumer
|
void |
onFlow(int currentCredits,
boolean drain) |
void |
onMessage(org.apache.qpid.proton.engine.Delivery delivery) |
void |
reportDrained()
Update link state to reflect that the previous drain attempt has completed.
|
ProtonServerSenderContext |
setBeforeDelivery(Consumer<? super MessageReference> beforeDelivery) |
void |
settle(org.apache.qpid.proton.engine.Delivery delivery) |
void |
start() |
isInitializedprotected final AMQPSessionContext protonSession
protected final org.apache.qpid.proton.engine.Sender sender
protected final AMQPConnectionContext connection
protected boolean closed
protected final AMQPSessionCallback sessionSPI
public ProtonServerSenderContext(AMQPConnectionContext connection, org.apache.qpid.proton.engine.Sender sender, AMQPSessionContext protonSession, AMQPSessionCallback server)
public ProtonServerSenderContext(AMQPConnectionContext connection, org.apache.qpid.proton.engine.Sender sender, AMQPSessionContext protonSession, AMQPSessionCallback server, SenderController senderController)
public ProtonServerSenderContext setBeforeDelivery(Consumer<? super MessageReference> beforeDelivery)
public Object getBrokerConsumer()
public void onFlow(int currentCredits,
boolean drain)
onFlow in interface ProtonDeliveryHandlerpublic boolean hasCredits()
public org.apache.qpid.proton.engine.Sender getSender()
public void start()
throws ActiveMQAMQPException
ActiveMQAMQPExceptionpublic void initialize()
throws Exception
initialize in class ProtonInitializableExceptionprotected String getClientId()
public void close(org.apache.qpid.proton.amqp.transport.ErrorCondition condition)
throws ActiveMQAMQPException
close in interface ProtonDeliveryHandlerActiveMQAMQPExceptionpublic void close(boolean remoteLinkClose)
throws ActiveMQAMQPException
close in interface ProtonDeliveryHandlerActiveMQAMQPExceptionpublic void onMessage(org.apache.qpid.proton.engine.Delivery delivery)
throws ActiveMQAMQPException
onMessage in interface ProtonDeliveryHandlerActiveMQAMQPExceptionprotected void doAck(Message message) throws ActiveMQAMQPIllegalStateException
public void settle(org.apache.qpid.proton.engine.Delivery delivery)
public void checkState()
public int deliverMessage(MessageReference messageReference, ServerConsumer consumer) throws Exception
Exceptionpublic void reportDrained()
public AMQPSessionContext getSessionContext()
Copyright © 2021 The Apache Software Foundation. All rights reserved.