public class ProtonServerReceiverContext extends ProtonInitializable implements ProtonDeliveryHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
address |
protected AMQPConnectionContext |
connection |
protected AMQPSessionContext |
protonSession |
protected org.apache.qpid.proton.engine.Receiver |
receiver |
protected AMQPSessionCallback |
sessionSPI |
| Constructor and Description |
|---|
ProtonServerReceiverContext(AMQPSessionCallback sessionSPI,
AMQPConnectionContext connection,
AMQPSessionContext protonSession,
org.apache.qpid.proton.engine.Receiver receiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean remoteLinkClose) |
void |
close(org.apache.qpid.proton.amqp.transport.ErrorCondition condition) |
void |
drain(int credits) |
int |
drained() |
void |
flow(int credits,
int threshold) |
void |
initialise() |
boolean |
isDraining() |
void |
onFlow(int credits,
boolean drain) |
void |
onMessage(org.apache.qpid.proton.engine.Delivery delivery) |
isInitializedprotected final AMQPConnectionContext connection
protected final AMQPSessionContext protonSession
protected final org.apache.qpid.proton.engine.Receiver receiver
protected String address
protected final AMQPSessionCallback sessionSPI
public ProtonServerReceiverContext(AMQPSessionCallback sessionSPI, AMQPConnectionContext connection, AMQPSessionContext protonSession, org.apache.qpid.proton.engine.Receiver receiver)
public void onFlow(int credits,
boolean drain)
onFlow in interface ProtonDeliveryHandlerpublic void initialise()
throws Exception
initialise in class ProtonInitializableExceptionpublic void onMessage(org.apache.qpid.proton.engine.Delivery delivery)
throws ActiveMQAMQPException
onMessage in interface ProtonDeliveryHandlerActiveMQAMQPExceptionpublic void close(boolean remoteLinkClose)
throws ActiveMQAMQPException
close in interface ProtonDeliveryHandlerActiveMQAMQPExceptionpublic void close(org.apache.qpid.proton.amqp.transport.ErrorCondition condition)
throws ActiveMQAMQPException
close in interface ProtonDeliveryHandlerActiveMQAMQPExceptionpublic void flow(int credits,
int threshold)
public void drain(int credits)
public int drained()
public boolean isDraining()
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.