Class VirtualTopicInterceptor
- java.lang.Object
-
- org.apache.activemq.broker.region.DestinationFilter
-
- org.apache.activemq.broker.region.virtual.VirtualTopicInterceptor
-
- All Implemented Interfaces:
Destination
,Message.MessageDestination
,Service
,Task
- Direct Known Subclasses:
SelectorAwareVirtualTopicInterceptor
public class VirtualTopicInterceptor extends DestinationFilter
A Destination which implements Virtual Topic
-
-
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 VirtualTopicInterceptor(Destination next, VirtualTopic virtualTopic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActiveMQDestination
getQueueConsumersWildcard(ActiveMQDestination original)
Topic
getTopic()
void
send(ProducerBrokerExchange context, Message message)
protected void
send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination)
Sends a message to the given destination which may be a wildcardprotected boolean
shouldDispatch(Broker broker, Message message, Destination dest)
-
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
-
VirtualTopicInterceptor
public VirtualTopicInterceptor(Destination next, VirtualTopic virtualTopic)
-
-
Method Detail
-
getTopic
public Topic getTopic()
-
send
public void send(ProducerBrokerExchange context, Message message) throws Exception
- Specified by:
send
in interfaceDestination
- Overrides:
send
in classDestinationFilter
- Throws:
Exception
-
send
protected void send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination) throws Exception
Description copied from class:DestinationFilter
Sends a message to the given destination which may be a wildcard- Overrides:
send
in classDestinationFilter
- Parameters:
context
- broker contextmessage
- message to senddestination
- possibly wildcard destination to send the message to- Throws:
Exception
- on error
-
shouldDispatch
protected boolean shouldDispatch(Broker broker, Message message, Destination dest) throws IOException
- Throws:
IOException
-
getQueueConsumersWildcard
protected ActiveMQDestination getQueueConsumersWildcard(ActiveMQDestination original)
-
-