Class SelectorAwareVirtualTopicInterceptor
- java.lang.Object
-
- org.apache.activemq.broker.region.DestinationFilter
-
- org.apache.activemq.broker.region.virtual.VirtualTopicInterceptor
-
- org.apache.activemq.broker.region.virtual.SelectorAwareVirtualTopicInterceptor
-
- All Implemented Interfaces:
Destination
,org.apache.activemq.command.Message.MessageDestination
,org.apache.activemq.Service
,org.apache.activemq.thread.Task
public class SelectorAwareVirtualTopicInterceptor extends VirtualTopicInterceptor
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.broker.region.DestinationFilter
next
-
Fields inherited from interface org.apache.activemq.broker.region.Destination
DEFAULT_BLOCKED_PRODUCER_WARNING_INTERVAL, DEFAULT_DEAD_LETTER_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description SelectorAwareVirtualTopicInterceptor(Destination next, VirtualTopic virtualTopic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
shouldDispatch(Broker broker, org.apache.activemq.command.Message message, Destination dest)
Respect the selectors of the subscriptions to ensure only matched messages are dispatched to the virtual queues, hence there is no build up of unmatched messages on these destinations-
Methods inherited from class org.apache.activemq.broker.region.virtual.VirtualTopicInterceptor
getQueueConsumersWildcard, getTopic, send, send
-
Methods inherited from class org.apache.activemq.broker.region.DestinationFilter
acknowledge, addProducer, addSubscription, browse, canGC, clearPendingMessages, deleteSubscription, dispose, duplicateFromStore, fastProducer, gc, getActiveMQDestination, getAdaptor, getBlockedProducerWarningInterval, getConsumers, getCursorMemoryHighWaterMark, getDeadLetterStrategy, getDestinationStatistics, getInactiveTimeoutBeforeGC, getMaxAuditDepth, getMaxBrowsePageSize, getMaxPageSize, getMaxProducersToAudit, getMemoryUsage, getMessageStore, getMinimumMessageSize, getName, getNext, getSlowConsumerStrategy, getTempUsage, isActive, isAlwaysRetroactive, isDisposed, isDoOptimzeMessageStorage, isEnableAudit, isFull, isLazyDispatch, isPrioritizedMessages, isProducerFlowControl, isSendDuplicateFromStoreToDLQ, isUseCache, iterate, markForGC, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messageExpired, processDispatchNotification, removeProducer, removeSubscription, setAlwaysRetroactive, setBlockedProducerWarningInterval, setCursorMemoryHighWaterMark, setDoOptimzeMessageStorage, setEnableAudit, setLazyDispatch, setMaxAuditDepth, setMaxBrowsePageSize, setMaxPageSize, setMaxProducersToAudit, setMemoryUsage, setMinimumMessageSize, setProducerFlowControl, setSendDuplicateFromStoreToDLQ, setUseCache, slowConsumer, start, stop, wakeup
-
-
-
-
Constructor Detail
-
SelectorAwareVirtualTopicInterceptor
public SelectorAwareVirtualTopicInterceptor(Destination next, VirtualTopic virtualTopic)
-
-
Method Detail
-
shouldDispatch
protected boolean shouldDispatch(Broker broker, org.apache.activemq.command.Message message, Destination dest) throws IOException
Respect the selectors of the subscriptions to ensure only matched messages are dispatched to the virtual queues, hence there is no build up of unmatched messages on these destinations- Overrides:
shouldDispatch
in classVirtualTopicInterceptor
- Throws:
IOException
-
-