public class SubQueueSelectorCacheBroker extends BrokerFilter implements Runnable
https://issues.apache.org/activemq/browse/AMQ-3004,
http://mail-archives.apache.org/mod_mbox/activemq-users/201011.mbox/%3C8A013711-2613-450A-A487-379E784AF1D6@homeaway.co.uk%3E| Modifier and Type | Field and Description |
|---|---|
static String |
MATCH_EVERYTHING |
static long |
MAX_PERSIST_INTERVAL |
next| Constructor and Description |
|---|
SubQueueSelectorCacheBroker(Broker next,
File persistFile)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addConsumer(ConnectionContext context,
ConsumerInfo info)
Adds a consumer.
|
boolean |
deleteAllSelectorsForDestination(String destinationName) |
boolean |
deleteSelectorForDestination(String destinationName,
String selector) |
long |
getPersistInterval() |
Set<String> |
getSelector(String destination) |
Set<String> |
getSelectorsForDestination(String destinationName) |
boolean |
isIgnoreWildcardSelectors() |
boolean |
isSingleSelectorPerDestination() |
void |
removeConsumer(ConnectionContext context,
ConsumerInfo info)
Removes a consumer.
|
void |
run()
Persist the selector cache every
MAX_PERSIST_INTERVALms. |
void |
setIgnoreWildcardSelectors(boolean ignoreWildcardSelectors) |
void |
setPersistInterval(long persistInterval) |
void |
setSingleSelectorPerDestination(boolean singleSelectorPerDestination) |
void |
stop() |
acknowledge, addBroker, addConnection, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, startpublic static final String MATCH_EVERYTHING
public static final long MAX_PERSIST_INTERVAL
public SubQueueSelectorCacheBroker(Broker next, File persistFile)
public void stop() throws Exception
stop in interface Servicestop in class BrokerFilterExceptionpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
RegionaddConsumer in interface RegionaddConsumer in class BrokerFiltercontext - the environment the operation is being executed under.Exception - TODOpublic void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
RegionremoveConsumer in interface RegionremoveConsumer in class BrokerFiltercontext - the environment the operation is being executed under.Exception - TODOpublic Set<String> getSelector(String destination)
destinationpublic void run()
MAX_PERSIST_INTERVALms.run in interface RunnableRunnable.run()public boolean isSingleSelectorPerDestination()
public void setSingleSelectorPerDestination(boolean singleSelectorPerDestination)
public Set<String> getSelectorsForDestination(String destinationName)
public long getPersistInterval()
public void setPersistInterval(long persistInterval)
public boolean deleteSelectorForDestination(String destinationName, String selector)
public boolean deleteAllSelectorsForDestination(String destinationName)
public boolean isIgnoreWildcardSelectors()
public void setIgnoreWildcardSelectors(boolean ignoreWildcardSelectors)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.