public interface MailboxListenerSupport
MailboxListener
. Its needed that the events get handled
in the submitted orderModifier 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 nullMailboxException
void removeListener(MailboxPath mailboxPath, MailboxListener listner, MailboxSession session) throws MailboxException
MailboxListener
mailboxPath
- listner
- session
- MailboxException
void addGlobalListener(MailboxListener listener, MailboxSession session) throws MailboxException
MailboxListener
which get fired for ever
MailboxPath
listener
- session
- MailboxException
void removeGlobalListener(MailboxListener listner, MailboxSession session) throws MailboxException
MailboxListener
listner
- session
- MailboxException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.