public class ProtonConsumer extends Object implements ProtonDeliveryHandler
| Constructor and Description |
|---|
ProtonConsumer(ProtonRemotingConnection connection,
org.apache.qpid.proton.engine.Sender sender,
ProtonSession protonSession,
HornetQServer server,
ProtonProtocolManager protonProtocolManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkState() |
void |
close() |
long |
getConsumerID() |
int |
handleDelivery(ServerMessage message,
int deliveryCount) |
void |
init() |
void |
onMessage(org.apache.qpid.proton.engine.Delivery delivery) |
void |
start() |
public ProtonConsumer(ProtonRemotingConnection connection, org.apache.qpid.proton.engine.Sender sender, ProtonSession protonSession, HornetQServer server, ProtonProtocolManager protonProtocolManager)
public void start()
throws HornetQAMQPException
HornetQAMQPExceptionpublic void init()
throws HornetQAMQPException
HornetQAMQPExceptionpublic void close()
throws HornetQAMQPException
close in interface ProtonDeliveryHandlerHornetQAMQPExceptionpublic long getConsumerID()
public int handleDelivery(ServerMessage message, int deliveryCount)
public void onMessage(org.apache.qpid.proton.engine.Delivery delivery)
throws HornetQAMQPException
onMessage in interface ProtonDeliveryHandlerHornetQAMQPExceptionpublic void checkState()
checkState in interface ProtonDeliveryHandlerCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.