public class QueueSubscription extends PrefetchSubscription implements LockOwner
dequeueCounter, dispatchCounter, dispatched, dispatchLock, enqueueCounter, pending, pendingLock, prefetchExtension, scheduler, usageManager, usePrefetchExtensionbroker, context, destinationFilter, destinations, infoHIGH_PRIORITY_LOCK_OWNER| Constructor and Description |
|---|
QueueSubscription(Broker broker,
SystemUsage usageManager,
ConnectionContext context,
ConsumerInfo info) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acknowledge(ConnectionContext context,
MessageAck ack,
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(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(MessageReference node) |
boolean |
isLockExclusive() |
String |
toString() |
acknowledge, add, add, assertAckMatchesDispatched, countBeforeFull, createMessageDispatch, dispatch, dispatchPending, getDequeueCounter, getDispatchedCounter, getDispatchedQueueSize, getEnqueueCounter, getInFlightSize, getMaxAuditDepth, getMaxProducersToAudit, getPending, getPendingQueueSize, getPrefetchExtension, isFull, isHighWaterMark, isLowWaterMark, isRecoveryRequired, isUsePrefetchExtension, onDispatch, processMessageDispatchNotification, pullMessage, remove, remove, sendToDLQ, setMaxAuditDepth, setMaxProducersToAudit, setPending, setPendingBatchSize, setPrefetchSize, setUsePrefetchExtension, updateConsumerPrefetchaddDestination, addRecoveredMessage, doAddRecoveredMessage, gc, getActiveMQDestination, getConsumedCount, getConsumerInfo, getContext, getCursorMemoryHighWaterMark, getInFlightUsage, getInfo, getObjectName, getPrefetchSize, getSelector, getSelectorExpression, getTimeOfLastMessageAck, incrementConsumedCount, isBrowser, isSlowConsumer, isWildcard, matches, matches, removeDestination, resetConsumedCount, setCursorMemoryHighWaterMark, setObjectName, setSelector, setSlowConsumer, setTimeOfLastMessageAck, unmatchedpublic QueueSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws JMSException
JMSExceptionprotected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference n) throws IOException
acknowledge in class PrefetchSubscriptionIOExceptionprotected boolean canDispatch(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(MessageReference node)
isDropped in class PrefetchSubscriptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.