Package jade.core.messaging
Class MatchAllFilter
- java.lang.Object
-
- jade.core.messaging.MatchAllFilter
-
- All Implemented Interfaces:
PersistentDeliveryFilter
public class MatchAllFilter extends Object implements PersistentDeliveryFilter
Ready made persistent delivery filter that makes whatever message always persistent.- Author:
- Giovanni Caire - TILAB
-
-
Field Summary
-
Fields inherited from interface jade.core.messaging.PersistentDeliveryFilter
NEVER, NOW
-
-
Constructor Summary
Constructors Constructor Description MatchAllFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdelayBeforeExpiration(ACLMessage msg)Match all possible messages
-
-
-
Method Detail
-
delayBeforeExpiration
public long delayBeforeExpiration(ACLMessage msg)
Match all possible messages- Specified by:
delayBeforeExpirationin interfacePersistentDeliveryFilter- 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
failuremessage is sent back to the message originator. The specially definedNOWandNEVERconstants can be used to request immediate abort or message storage for unlimited time.
-
-