public class QueueBrowserSubscription extends QueueSubscription
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
dispatched, dispatchLock, pending, pendingLock, scheduler, usageManager, usePrefetchExtensionbroker, context, destinationFilter, destinations, info, prefetchExtensionHIGH_PRIORITY_LOCK_OWNER| Constructor and Description |
|---|
QueueBrowserSubscription(Broker broker,
SystemUsage usageManager,
ConnectionContext context,
org.apache.activemq.command.ConsumerInfo info) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acknowledge(ConnectionContext context,
org.apache.activemq.command.MessageAck ack,
org.apache.activemq.broker.region.MessageReference n)
Since we are a browser we don't really remove the message from the queue.
|
boolean |
atMax() |
protected boolean |
canDispatch(org.apache.activemq.broker.region.MessageReference node)
Use when a matched message is about to be dispatched to the client.
|
void |
decrementQueueRef() |
void |
destinationsAdded() |
void |
incrementQueueRef() |
boolean |
isDuplicate(org.apache.activemq.command.MessageId messageId) |
boolean |
matches(org.apache.activemq.broker.region.MessageReference node,
org.apache.activemq.filter.MessageEvaluationContext context)
Is the subscription interested in the message?
|
List<org.apache.activemq.broker.region.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, getPendingMessageSize, getPendingQueueSize, 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, getPrefetchExtension, getPrefetchSize, getSelector, getSelectorExpression, getSubscriptionStatistics, getTimeOfLastMessageAck, incrementConsumedCount, isBrowser, isSlowConsumer, isWildcard, matches, removeDestination, resetConsumedCount, setCursorMemoryHighWaterMark, setObjectName, setSelector, setSlowConsumer, setTimeOfLastMessageAck, unmatched, wakeupDestinationsForDispatchpublic QueueBrowserSubscription(Broker broker, SystemUsage usageManager, ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected boolean canDispatch(org.apache.activemq.broker.region.MessageReference node)
PrefetchSubscriptioncanDispatch in class QueueSubscriptionpublic String toString()
toString in class QueueSubscriptionpublic boolean isDuplicate(org.apache.activemq.command.MessageId messageId)
public boolean matches(org.apache.activemq.broker.region.MessageReference node,
org.apache.activemq.filter.MessageEvaluationContext context)
throws IOException
Subscriptionmatches in interface Subscriptionmatches in class AbstractSubscriptionIOExceptionprotected void acknowledge(ConnectionContext context, org.apache.activemq.command.MessageAck ack, org.apache.activemq.broker.region.MessageReference n) throws IOException
acknowledge in class QueueSubscriptionIOExceptionpublic void incrementQueueRef()
public List<org.apache.activemq.broker.region.MessageReference> remove(ConnectionContext context, Destination destination) throws Exception
Subscriptionremove in interface Subscriptionremove in class PrefetchSubscriptionExceptionpublic boolean atMax()
public void setMaxMessages(long max)
Copyright © 2017 Power TAC. All rights reserved.