|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.plugin.ForcePersistencyModeBrokerPlugin
public class ForcePersistencyModeBrokerPlugin
A Plugin which allows to force every incoming message to be PERSISTENT or NON-PERSISTENT. Useful, if you have set the broker usage policy to process ONLY persistent or ONLY non-persistent messages.
| Constructor Summary | |
|---|---|
ForcePersistencyModeBrokerPlugin()
Constructor |
|
| Method Summary | |
|---|---|
Broker |
installPlugin(Broker broker)
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use. |
boolean |
isPersistenceForced()
|
void |
setPersistenceFlag(boolean persistenceFlag)
Sets the persistency mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForcePersistencyModeBrokerPlugin()
| Method Detail |
|---|
public Broker installPlugin(Broker broker)
throws Exception
BrokerPlugin
installPlugin in interface BrokerPluginbroker -
ExceptionBrokerPlugin.installPlugin(org.apache.activemq.broker.Broker)public void setPersistenceFlag(boolean persistenceFlag)
persistenceFlag - public final boolean isPersistenceForced()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||