public class QueueBrowserSubscription extends QueueSubscription
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG |
dispatched, dispatchLock, 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.
|
boolean |
atMax() |
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 |
isDuplicate(MessageId messageId) |
boolean |
matches(MessageReference node,
MessageEvaluationContext context)
Is the subscription interested in the message?
|
List<MessageReference> |
remove(ConnectionContext context,
Destination destination)
The subscription will be no longer be receiving messages from the destination.
|
void |
setMaxMessages(long max) |
String |
toString() |
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, remove, sendToDLQ, setMaxAuditDepth, setMaxProducersToAudit, setPending, setPendingBatchSize, setPrefetchSize, setUsePrefetchExtension, updateConsumerPrefetchaddDestination, addRecoveredMessage, doAddRecoveredMessage, gc, getActiveMQDestination, getConsumedCount, getConsumerInfo, getContext, getCursorMemoryHighWaterMark, getInFlightMessageSize, getInFlightUsage, getInfo, getObjectName, getPrefetchSize, getSelector, getSelectorExpression, getSubscriptionStatistics, getTimeOfLastMessageAck, incrementConsumedCount, isBrowser, isSlowConsumer, isWildcard, matches, removeDestination, resetConsumedCount, setCursorMemoryHighWaterMark, setObjectName, setSelector, setSlowConsumer, setTimeOfLastMessageAck, unmatchedpublic QueueBrowserSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, ConsumerInfo info) throws JMSException
JMSExceptionprotected boolean canDispatch(MessageReference node)
PrefetchSubscriptioncanDispatch in class QueueSubscriptionpublic String toString()
toString in class QueueSubscriptionpublic void destinationsAdded() throws Exception
Exceptionpublic boolean isDuplicate(MessageId messageId)
public boolean matches(MessageReference node, MessageEvaluationContext context) throws IOException
Subscriptionmatches in interface Subscriptionmatches in class AbstractSubscriptionIOExceptionprotected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference n) throws IOException
acknowledge in class QueueSubscriptionIOExceptionpublic void incrementQueueRef()
public void decrementQueueRef() throws Exception
Exceptionpublic List<MessageReference> remove(ConnectionContext context, Destination destination) throws Exception
Subscriptionremove in interface Subscriptionremove in class PrefetchSubscriptionExceptionpublic boolean atMax()
public void setMaxMessages(long max)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.