Class ForcePersistencyModeBrokerPlugin

  • All Implemented Interfaces:
    BrokerPlugin

    public class ForcePersistencyModeBrokerPlugin
    extends Object
    implements BrokerPlugin
    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 Detail

      • ForcePersistencyModeBrokerPlugin

        public ForcePersistencyModeBrokerPlugin()
        Constructor
    • Method Detail

      • setPersistenceFlag

        public void setPersistenceFlag​(boolean persistenceFlag)
        Sets the persistence mode.
        Parameters:
        persistenceFlag -
      • isPersistenceForced

        public final boolean isPersistenceForced()
        Returns:
        the mode the (activated) plugin will set the message delivery mode