public interface MailboxListenerSupport
MailboxListener. Its needed that the events get handled
in the submitted order| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalListener(MailboxListener listener,
MailboxSession session)
Add a
MailboxListener which get fired for ever
MailboxPath |
void |
addListener(MailboxPath mailboxPath,
MailboxListener listener,
MailboxSession session)
Implementations of Mailbox may interpret the fact that someone is
listening and do some caching and even postpone persistence until
everyone has removed itself.
|
void |
removeGlobalListener(MailboxListener listner,
MailboxSession session)
Remove the
MailboxListener |
void |
removeListener(MailboxPath mailboxPath,
MailboxListener listner,
MailboxSession session)
Remove the
MailboxListener |
void addListener(MailboxPath mailboxPath, MailboxListener listener, MailboxSession session) throws MailboxException
Implementations of Mailbox may interpret the fact that someone is listening and do some caching and even postpone persistence until everyone has removed itself.
mailboxPath - not nulllistener - not nullsession - not nullMailboxExceptionvoid removeListener(MailboxPath mailboxPath, MailboxListener listner, MailboxSession session) throws MailboxException
MailboxListenermailboxPath - listner - session - MailboxExceptionvoid addGlobalListener(MailboxListener listener, MailboxSession session) throws MailboxException
MailboxListener which get fired for ever
MailboxPathlistener - session - MailboxExceptionvoid removeGlobalListener(MailboxListener listner, MailboxSession session) throws MailboxException
MailboxListenerlistner - session - MailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.