public class QueueSubscription extends PrefetchSubscription implements LockOwner
dispatched, dispatchLock, pending, pendingLock, scheduler, usageManagerbroker, context, destinationFilter, destinations, info, prefetchExtensionHIGH_PRIORITY_LOCK_OWNER| Constructor and Description |
|---|
QueueSubscription(Broker broker,
SystemUsage usageManager,
ConnectionContext context,
org.apache.activemq.command.ConsumerInfo info) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acknowledge(ConnectionContext context,
org.apache.activemq.command.MessageAck ack,
org.apache.activemq.broker.region.MessageReference n)
In the queue case, mark the node as dropped and then a gc cycle will
remove it from the queue.
|
protected boolean |
canDispatch(org.apache.activemq.broker.region.MessageReference n)
Use when a matched message is about to be dispatched to the client.
|
void |
destroy()
Called when the subscription is destroyed.
|
int |
getLockPriority() |
protected boolean |
isDropped(org.apache.activemq.broker.region.MessageReference node) |
boolean |
isLockExclusive() |
String |
toString() |
acknowledge, add, add, assertAckMatchesDispatched, countBeforeFull, createMessageDispatch, dispatch, dispatchPending, getDequeueCounter, getDispatchedCounter, getDispatchedQueueSize, getEnqueueCounter, getInFlightSize, getMaxAuditDepth, getMaxProducersToAudit, getPending, getPendingMessageSize, getPendingQueueSize, isFull, isHighWaterMark, isLowWaterMark, isRecoveryRequired, onDispatch, processMessageDispatchNotification, pullMessage, remove, remove, sendToDLQ, setMaxAuditDepth, setMaxProducersToAudit, setPending, setPendingBatchSize, setPrefetchSize, updateConsumerPrefetchaddDestination, addRecoveredMessage, contractPrefetchExtension, decrementPrefetchExtension, doAddRecoveredMessage, expandPrefetchExtension, gc, getActiveMQDestination, getConsumedCount, getConsumerInfo, getContext, getCursorMemoryHighWaterMark, getInFlightMessageSize, getInFlightUsage, getInfo, getObjectName, getPrefetchExtension, getPrefetchSize, getSelector, getSelectorExpression, getSubscriptionStatistics, getTimeOfLastMessageAck, incrementConsumedCount, isBrowser, isSlowConsumer, isUsePrefetchExtension, isWildcard, matches, matches, removeDestination, resetConsumedCount, setCursorMemoryHighWaterMark, setObjectName, setSelector, setSlowConsumer, setTimeOfLastMessageAck, setUsePrefetchExtension, unmatched, wakeupDestinationsForDispatchpublic QueueSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void acknowledge(ConnectionContext context, org.apache.activemq.command.MessageAck ack, org.apache.activemq.broker.region.MessageReference n) throws IOException
acknowledge in class PrefetchSubscriptionIOExceptionprotected boolean canDispatch(org.apache.activemq.broker.region.MessageReference n) throws IOException
PrefetchSubscriptioncanDispatch in class PrefetchSubscriptionIOExceptionpublic int getLockPriority()
getLockPriority in interface LockOwnerpublic boolean isLockExclusive()
isLockExclusive in interface LockOwnerpublic void destroy()
Subscriptiondestroy in interface Subscriptionprotected boolean isDropped(org.apache.activemq.broker.region.MessageReference node)
isDropped in class PrefetchSubscriptionCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.