public class AMQConsumer extends Object
| Constructor and Description |
|---|
AMQConsumer(AMQSession amqSession,
org.apache.activemq.command.ActiveMQDestination d,
org.apache.activemq.command.ConsumerInfo info,
ScheduledExecutorService scheduledPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(org.apache.activemq.command.MessageAck ack)
The acknowledgement in openwire is done based on intervals.
|
void |
acquireCredit(int n) |
void |
browseFinished() |
org.apache.activemq.command.ConsumerId |
getId() |
org.apache.activemq.command.ConsumerInfo |
getInfo() |
org.apache.activemq.wireformat.WireFormat |
getMarshaller() |
org.apache.activemq.command.ActiveMQDestination |
getOpenwireDestination() |
int |
handleDeliver(MessageReference reference,
ServerMessage message,
int deliveryCount) |
void |
handleDeliverNullDispatch() |
boolean |
hasCredits() |
void |
init(SlowConsumerDetectionListener slowConsumerDetectionListener,
long nativeId) |
void |
processMessagePull(org.apache.activemq.command.MessagePull messagePull) |
void |
removeConsumer() |
void |
setPrefetchSize(int prefetchSize) |
boolean |
updateDeliveryCountAfterCancel(MessageReference ref) |
public AMQConsumer(AMQSession amqSession, org.apache.activemq.command.ActiveMQDestination d, org.apache.activemq.command.ConsumerInfo info, ScheduledExecutorService scheduledPool)
public void init(SlowConsumerDetectionListener slowConsumerDetectionListener, long nativeId) throws Exception
Exceptionpublic org.apache.activemq.command.ConsumerId getId()
public org.apache.activemq.wireformat.WireFormat getMarshaller()
public int handleDeliver(MessageReference reference, ServerMessage message, int deliveryCount)
public void handleDeliverNullDispatch()
public void acknowledge(org.apache.activemq.command.MessageAck ack)
throws Exception
ServerConsumer.getDeliveringReferencesBasedOnProtocol(boolean, Object, Object)
and add those to the Transaction.
Notice that we will start a new transaction on the cases where there is no transaction.Exceptionpublic void browseFinished()
public org.apache.activemq.command.ConsumerInfo getInfo()
public boolean hasCredits()
public void processMessagePull(org.apache.activemq.command.MessagePull messagePull)
throws Exception
Exceptionpublic org.apache.activemq.command.ActiveMQDestination getOpenwireDestination()
public void setPrefetchSize(int prefetchSize)
public boolean updateDeliveryCountAfterCancel(MessageReference ref)
Copyright © 2023 The Apache Software Foundation. All Rights Reserved.