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) |
| 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
|
Object |
getBrokerConsumer() |
protected String |
getClientId() |
org.apache.qpid.proton.engine.Sender |
getSender() |
AMQPSessionContext |
getSessionContext() |
boolean |
hasCredits() |
void |
initialise()
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.
|
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 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 initialise()
throws Exception
initialise 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 ProtonDeliveryHandlerActiveMQAMQPExceptionpublic 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 © 2020 The Apache Software Foundation. All Rights Reserved.