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(org.apache.activemq.artemis.core.server.MessageReference reference,
org.apache.activemq.artemis.api.core.ICoreMessage message,
int deliveryCount) |
void |
handleDeliverNullDispatch() |
boolean |
hasCredits() |
void |
init(org.apache.activemq.artemis.core.server.SlowConsumerDetectionListener slowConsumerDetectionListener,
long nativeId) |
void |
processMessagePull(org.apache.activemq.command.MessagePull messagePull) |
void |
removeConsumer() |
void |
setPrefetchSize(int prefetchSize) |
boolean |
updateDeliveryCountAfterCancel(org.apache.activemq.artemis.core.server.MessageReference ref) |
public AMQConsumer(AMQSession amqSession, org.apache.activemq.command.ActiveMQDestination d, org.apache.activemq.command.ConsumerInfo info, ScheduledExecutorService scheduledPool)
public void init(org.apache.activemq.artemis.core.server.SlowConsumerDetectionListener slowConsumerDetectionListener,
long nativeId)
throws Exception
Exceptionpublic org.apache.activemq.command.ConsumerId getId()
public org.apache.activemq.wireformat.WireFormat getMarshaller()
public int handleDeliver(org.apache.activemq.artemis.core.server.MessageReference reference,
org.apache.activemq.artemis.api.core.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 org.apache.activemq.command.ActiveMQDestination getOpenwireDestination()
public void setPrefetchSize(int prefetchSize)
public boolean updateDeliveryCountAfterCancel(org.apache.activemq.artemis.core.server.MessageReference ref)
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.