public class ProtonServerSenderContext extends ProtonInitializable implements ProtonDeliveryHandler
ProtonServerSenderContext and ProtonClientSenderContext once we support 'global' link names. The split is a workaround for outgoing links| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected AMQPConnectionContext |
connection |
protected CreditsSemaphore |
creditsSemaphore |
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(Object message,
int deliveryCount)
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() |
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 |
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
protected CreditsSemaphore creditsSemaphore
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 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 checkState()
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.