public class QueueBrowserSubscription extends QueueSubscription
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
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.
|
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?
|
java.util.List<MessageReference> |
remove(ConnectionContext context,
Destination destination)
The subscription will be no longer be receiving messages from the destination.
|
void |
setMaxMessages(long max) |
java.lang.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, getInFlightUsage, getInfo, getObjectName, getPrefetchSize, getSelector, getSelectorExpression, getTimeOfLastMessageAck, incrementConsumedCount, isBrowser, isSlowConsumer, matches, removeDestination, resetConsumedCount, setCursorMemoryHighWaterMark, setObjectName, setSelector, setSlowConsumer, setTimeOfLastMessageAck, 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 isDuplicate(MessageId messageId)
public 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.Exceptionpublic boolean atMax()
public void setMaxMessages(long max)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.