Package jade.core.messaging
Interface PersistentDeliveryFilter
-
- All Known Implementing Classes:
MatchAllFilter
public interface PersistentDeliveryFilterThis interface can be used
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longdelayBeforeExpiration(ACLMessage msg)The application-specific method to control which messages are to be buffered and for how long.
-
-
-
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
failuremessage is sent back to the message originator. The specially definedNOWandNEVERconstants can be used to request immediate abort or message storage for unlimited time.
-
-