Class SelectorAwareVirtualTopicInterceptor
java.lang.Object
org.apache.activemq.broker.region.DestinationFilter
org.apache.activemq.broker.region.virtual.BaseVirtualDestinationFilter
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
-
Field Summary
Fields inherited from class org.apache.activemq.broker.region.DestinationFilter
nextFields inherited from interface org.apache.activemq.broker.region.Destination
DEFAULT_BLOCKED_PRODUCER_WARNING_INTERVAL, DEFAULT_DEAD_LETTER_STRATEGY -
Constructor Summary
ConstructorsConstructorDescriptionSelectorAwareVirtualTopicInterceptor(Destination next, VirtualTopic virtualTopic) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanshouldDispatch(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 destinationsMethods inherited from class org.apache.activemq.broker.region.virtual.VirtualTopicInterceptor
getQueueConsumersWildcard, getTopic, send, sendMethods 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, isAdvancedMessageStatisticsEnabled, isAdvancedNetworkStatisticsEnabled, isAlwaysRetroactive, isDisposed, isDoOptimzeMessageStorage, isEnableAudit, isFull, isLazyDispatch, isPrioritizedMessages, isProducerFlowControl, isSendDuplicateFromStoreToDLQ, isUseCache, iterate, markForGC, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, messageExpired, processDispatchNotification, removeProducer, removeSubscription, setAdvancedMessageStatisticsEnabled, setAdvancedNetworkStatisticsEnabled, setAlwaysRetroactive, setBlockedProducerWarningInterval, setCursorMemoryHighWaterMark, setDoOptimzeMessageStorage, setEnableAudit, setLazyDispatch, setMaxAuditDepth, setMaxBrowsePageSize, setMaxPageSize, setMaxProducersToAudit, setMemoryUsage, setMinimumMessageSize, setProducerFlowControl, setSendDuplicateFromStoreToDLQ, setUseCache, slowConsumer, start, stop, wakeup
-
Constructor Details
-
SelectorAwareVirtualTopicInterceptor
-
-
Method Details
-
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:
shouldDispatchin classVirtualTopicInterceptor- Throws:
IOException
-