Package org.apache.activemq.plugin
Class SubQueueSelectorCacheBrokerPlugin
java.lang.Object
org.apache.activemq.plugin.SubQueueSelectorCacheBrokerPlugin
- All Implemented Interfaces:
BrokerPlugin
A plugin which allows the caching of the selector from a subscription queue.
This stops the build-up of unwanted messages, especially when consumers may
disconnect from time to time when using virtual destinations.
This is influenced by code snippets developed by Maciej Rakowicz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonginstallPlugin(Broker broker) Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.booleanbooleanvoidsetIgnoreWildcardSelectors(boolean ignoreWildcardSelectors) voidsetPersistFile(File persistFile) Sets the location of the persistent cachevoidsetPersistInterval(long persistInterval) voidsetSingleSelectorPerDestination(boolean singleSelectorPerDestination)
-
Constructor Details
-
SubQueueSelectorCacheBrokerPlugin
public SubQueueSelectorCacheBrokerPlugin()
-
-
Method Details
-
installPlugin
Description copied from interface:BrokerPluginInstalls the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.- Specified by:
installPluginin interfaceBrokerPlugin- Throws:
Exception
-
setPersistFile
Sets the location of the persistent cache -
getPersistFile
-
isSingleSelectorPerDestination
public boolean isSingleSelectorPerDestination() -
setSingleSelectorPerDestination
public void setSingleSelectorPerDestination(boolean singleSelectorPerDestination) -
getPersistInterval
public long getPersistInterval() -
setPersistInterval
public void setPersistInterval(long persistInterval) -
isIgnoreWildcardSelectors
public boolean isIgnoreWildcardSelectors() -
setIgnoreWildcardSelectors
public void setIgnoreWildcardSelectors(boolean ignoreWildcardSelectors)
-