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,
boolean internalAddress) |
| 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 |
addRolledback(MessageReference messageReference) |
void |
browseFinished() |
org.apache.activemq.command.ConsumerId |
getId() |
org.apache.activemq.command.ConsumerInfo |
getInfo() |
org.apache.activemq.command.ActiveMQDestination |
getOpenwireDestination() |
int |
handleDeliver(MessageReference reference,
ICoreMessage message,
int deliveryCount) |
void |
handleDeliverNullDispatch() |
boolean |
hasCredits() |
boolean |
hasNotificationDestination() |
void |
init(SlowConsumerDetectionListener slowConsumerDetectionListener,
long nativeId) |
void |
processMessagePull(org.apache.activemq.command.MessagePull messagePull) |
void |
removeConsumer() |
boolean |
removeRolledback(MessageReference messageReference) |
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, boolean internalAddress)
public void init(SlowConsumerDetectionListener slowConsumerDetectionListener, long nativeId) throws Exception
Exceptionpublic org.apache.activemq.command.ConsumerId getId()
public void acquireCredit(int n)
public int handleDeliver(MessageReference reference, ICoreMessage 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 boolean hasNotificationDestination()
public org.apache.activemq.command.ActiveMQDestination getOpenwireDestination()
public void setPrefetchSize(int prefetchSize)
public boolean updateDeliveryCountAfterCancel(MessageReference ref)
public boolean removeRolledback(MessageReference messageReference)
public void addRolledback(MessageReference messageReference)
Copyright © 2020 The Apache Software Foundation. All rights reserved.