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 void |
assignGroupToMe(MessageGroupMap messageGroupOwners,
MessageReference n,
java.lang.String groupId)
Assigns the message group to this subscription and set the flag on the
message that it is the first message to be dispatched.
|
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() |
java.lang.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, sendToDLQ, setMaxAuditDepth, setMaxProducersToAudit, setPending, setPendingBatchSize, setPrefetchSize, setUsePrefetchExtension, updateConsumerPrefetchaddDestination, addRecoveredMessage, doAddRecoveredMessage, gc, getActiveMQDestination, getConsumerInfo, getContext, getCursorMemoryHighWaterMark, getInFlightUsage, getInfo, getObjectName, getPrefetchSize, getSelector, getSelectorExpression, isBrowser, isSlowConsumer, matches, matches, removeDestination, setCursorMemoryHighWaterMark, setObjectName, setSelector, setSlowConsumer, unmatchedpublic QueueSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference n) throws java.io.IOException
acknowledge in class PrefetchSubscriptionjava.io.IOExceptionprotected boolean canDispatch(MessageReference n) throws java.io.IOException
PrefetchSubscriptioncanDispatch in class PrefetchSubscriptionjava.io.IOExceptionprotected void assignGroupToMe(MessageGroupMap messageGroupOwners, MessageReference n, java.lang.String groupId) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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-2013 Red Hat, Inc.. All Rights Reserved.