Package org.apache.activemq.plugin
Class SubQueueSelectorCacheBrokerPlugin
- java.lang.Object
-
- org.apache.activemq.plugin.SubQueueSelectorCacheBrokerPlugin
-
- All Implemented Interfaces:
BrokerPlugin
public class SubQueueSelectorCacheBrokerPlugin extends Object implements 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 Constructor Description SubQueueSelectorCacheBrokerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getPersistFile()
long
getPersistInterval()
Broker
installPlugin(Broker broker)
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.boolean
isIgnoreWildcardSelectors()
boolean
isSingleSelectorPerDestination()
void
setIgnoreWildcardSelectors(boolean ignoreWildcardSelectors)
void
setPersistFile(File persistFile)
Sets the location of the persistent cachevoid
setPersistInterval(long persistInterval)
void
setSingleSelectorPerDestination(boolean singleSelectorPerDestination)
-
-
-
Method Detail
-
installPlugin
public Broker installPlugin(Broker broker) throws Exception
Description copied from interface:BrokerPlugin
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.- Specified by:
installPlugin
in interfaceBrokerPlugin
- Throws:
Exception
-
setPersistFile
public void setPersistFile(File persistFile)
Sets the location of the persistent cache
-
getPersistFile
public File 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)
-
-