public class QueueBrowserSubscription extends QueueSubscription
dequeueCounter, dispatchCounter, dispatched, dispatchLock, enqueueCounter, pending, pendingLock, prefetchExtension, scheduler, usageManager, usePrefetchExtensionbroker, context, destinationFilter, destinations, infoHIGH_PRIORITY_LOCK_OWNER| Constructor and Description |
|---|
QueueBrowserSubscription(Broker broker,
SystemUsage usageManager,
ConnectionContext context,
ConsumerInfo info) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acknowledge(ConnectionContext context,
MessageAck ack,
MessageReference n)
Since we are a browser we don't really remove the message from the queue.
|
protected boolean |
canDispatch(MessageReference node)
Use when a matched message is about to be dispatched to the client.
|
void |
decrementQueueRef() |
void |
destinationsAdded() |
void |
incrementQueueRef() |
boolean |
matches(MessageReference node,
MessageEvaluationContext context)
Is the subscription interested in the message?
|
java.util.List<MessageReference> |
remove(ConnectionContext context,
Destination destination)
The subscription will be no longer be receiving messages from the destination.
|
java.lang.String |
toString() |
assignGroupToMe, destroy, getLockPriority, isDropped, isLockExclusiveacknowledge, 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, sendToDLQ, setMaxAuditDepth, setMaxProducersToAudit, setPending, setPendingBatchSize, setPrefetchSize, setUsePrefetchExtension, updateConsumerPrefetchaddDestination, addRecoveredMessage, doAddRecoveredMessage, gc, getActiveMQDestination, getConsumerInfo, getContext, getCursorMemoryHighWaterMark, getInFlightUsage, getInfo, getObjectName, getPrefetchSize, getSelector, getSelectorExpression, isBrowser, isSlowConsumer, matches, removeDestination, setCursorMemoryHighWaterMark, setObjectName, setSelector, setSlowConsumer, unmatchedpublic QueueBrowserSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected boolean canDispatch(MessageReference node)
PrefetchSubscriptioncanDispatch in class QueueSubscriptionpublic java.lang.String toString()
toString in class QueueSubscriptionpublic void destinationsAdded()
throws java.lang.Exception
java.lang.Exceptionpublic boolean matches(MessageReference node, MessageEvaluationContext context) throws java.io.IOException
Subscriptionmatches in interface Subscriptionmatches in class AbstractSubscriptionjava.io.IOExceptionprotected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference n) throws java.io.IOException
acknowledge in class QueueSubscriptionjava.io.IOExceptionpublic void incrementQueueRef()
public void decrementQueueRef()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<MessageReference> remove(ConnectionContext context, Destination destination) throws java.lang.Exception
Subscriptionremove in interface Subscriptionremove in class PrefetchSubscriptionjava.lang.ExceptionCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.