|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mailbox.util.MailboxEventDispatcher
public class MailboxEventDispatcher
Helper class to dispatch Event's to registerend MailboxListener
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.james.mailbox.MailboxListener |
|---|
MailboxListener.Added, MailboxListener.Event, MailboxListener.Expunged, MailboxListener.FlagsUpdated, MailboxListener.MailboxDeletionEvent, MailboxListener.MailboxRenamed, MailboxListener.MessageEvent |
| Constructor Summary | |
|---|---|
MailboxEventDispatcher()
|
|
| Method Summary | |
|---|---|
void |
added(long uid,
long sessionId,
MailboxPath path)
Should get called when a new message was added to a Mailbox. |
void |
addMailboxListener(MailboxListener mailboxListener)
Add a MailboxListener to this dispatcher |
int |
count()
Return the the count of all registered MailboxListener |
void |
event(MailboxListener.Event event)
Informs this listener about the given event. |
void |
expunged(long uid,
long sessionId,
MailboxPath path)
Should get called when a message was expunged from a Mailbox. |
void |
flagsUpdated(long uid,
long sessionId,
MailboxPath path,
javax.mail.Flags original,
javax.mail.Flags updated)
Should get called when the message flags were update in a Mailbox. |
boolean |
isClosed()
Is this listener closed? |
void |
mailboxDeleted(long sessionId,
MailboxPath path)
Should get called when a Mailbox was deleted. |
void |
mailboxRenamed(MailboxPath from,
MailboxPath to,
long sessionId)
Should get called when a Mailbox was renamed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailboxEventDispatcher()
| Method Detail |
|---|
public void addMailboxListener(MailboxListener mailboxListener)
mailboxListener -
public void added(long uid,
long sessionId,
MailboxPath path)
uid - sessionId - path -
public void expunged(long uid,
long sessionId,
MailboxPath path)
uid - sessionId - path -
public void flagsUpdated(long uid,
long sessionId,
MailboxPath path,
javax.mail.Flags original,
javax.mail.Flags updated)
uid - sessionId - path - original - updated - public void event(MailboxListener.Event event)
MailboxListener
event in interface MailboxListenerevent - not nullpublic int count()
public void mailboxRenamed(MailboxPath from,
MailboxPath to,
long sessionId)
from - to - sessionId -
public void mailboxDeleted(long sessionId,
MailboxPath path)
sessionId - path - public boolean isClosed()
MailboxListener
isClosed in interface MailboxListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||