|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementations of AcceptFilter can be used to select which mails a SpoolRepository implementation returns from its accept (AcceptFilter) method
Method Summary | |
boolean |
accept(String key,
String state,
long lastUpdated,
String errorMessage)
This method is called by accept(Filter) to determine if the message is ready for delivery. |
long |
getWaitTime()
This method allows the filter to determine how long the thread should wait for a message to get ready for delivery, when currently there are none. |
Method Detail |
public boolean accept(String key, String state, long lastUpdated, String errorMessage)
key
- message keystate
- the state of the messagelastUpdated
- the last time the message was written to the spoolerrorMessage
- the current errorMessage
public long getWaitTime()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |