|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageSpool
Implement this interface to provide a custom spooling implementation.
MessageSpool is used by the SMPServer to store a newly received message until the MessageProcessors are ready to process it.
| Method Summary | |
|---|---|
EmailMessage |
createMessage()
Factory method called when a new message is being processed. |
EmailMessage |
deSpoolMessage()
Returns the newt EmailMessage in the spool. |
boolean |
spoolMessage(EmailMessage message)
Stores a new message in the spool. |
| Method Detail |
|---|
EmailMessage createMessage()
MessageSpool implementation to provide a custom EmailMessage implementation.
boolean spoolMessage(EmailMessage message)
message - the EmailMessage to spool.
EmailMessage deSpoolMessage()
throws InterruptedException
EmailMessage in the spool. If the spool is empty, implementations
can either return null, or block until the next available message.
EmailMessage, or null if queue is empty and non-blocking.
InterruptedException - thrown for blocking implementations that are interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||