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,
boolean delivered) |
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) |
void |
handleDeliverNullDispatch() |
boolean |
hasCredits() |
void |
init(SlowConsumerDetectionListener slowConsumerDetectionListener,
long nativeId) |
void |
processMessagePull(org.apache.activemq.command.MessagePull messagePull) |
void |
removeConsumer() |
void |
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,
boolean delivered)
public int handleDeliver(MessageReference reference, ICoreMessage message)
public void handleDeliverNullDispatch()
public void acknowledge(org.apache.activemq.command.MessageAck ack)
throws Exception
ServerConsumer.scanDeliveringReferences(boolean, Function, Function)
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)
public void removeRolledback(MessageReference messageReference)
public void addRolledback(MessageReference messageReference)
Copyright © 2022 The Apache Software Foundation. All rights reserved.