Interface PersistentDeliveryFilter

  • All Known Implementing Classes:
    MatchAllFilter

    public interface PersistentDeliveryFilter
    This interface can be used
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long NEVER
      The constant to specify no failure notification (i.e.
      static long NOW
      The constant to specifiy an immediate failure notification (i.e.
    • Field Detail

      • NOW

        static final long NOW
        The constant to specifiy an immediate failure notification (i.e. no message buffering).
        See Also:
        Constant Field Values
      • NEVER

        static final long NEVER
        The constant to specify no failure notification (i.e. message buffering for infinitely long).
        See Also:
        Constant Field Values
    • Method Detail

      • delayBeforeExpiration

        long delayBeforeExpiration​(ACLMessage msg)
        The application-specific method to control which messages are to be buffered and for how long.
        Parameters:
        msg - The undelivered ACL message, that is to be tested against this filter and possibly buffered.
        Returns:
        The delay, in milliseconds, within which the message is to be delivered. If the message is still undelivered after that delay, the delivery process aborts and a failure message is sent back to the message originator. The specially defined NOW and NEVER constants can be used to request immediate abort or message storage for unlimited time.