|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hs.mail.imap.event.EventDispatcher
public class EventDispatcher
This class is responsible for dispatching all events coming from Message Store to all event listeners subscribed in this dispatcher.
Constructor Summary | |
---|---|
EventDispatcher()
|
Method Summary | |
---|---|
void |
added(long mailboxID)
|
void |
addEventListener(EventListener listener)
Add a listener for events. |
void |
expunged(long sessionID,
long mailboxID,
List<Long> uids)
|
void |
flagsUpdated(long sessionID,
long mailboxID,
List<Long> uids)
|
void |
mailboxDeleted(long sessionID,
long mailboxID)
|
void |
notifyEventListeners(EventListener.Event event)
Notify all event listeners. |
void |
removeEventListener(EventListener listener)
Remove a listener for events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventDispatcher()
Method Detail |
---|
public void addEventListener(EventListener listener)
listener
- the listener for eventspublic void removeEventListener(EventListener listener)
listener
- the listeneraddEventListener(com.hs.mail.imap.event.EventListener)
public void added(long mailboxID)
public void expunged(long sessionID, long mailboxID, List<Long> uids)
public void flagsUpdated(long sessionID, long mailboxID, List<Long> uids)
public void mailboxDeleted(long sessionID, long mailboxID)
public void notifyEventListeners(EventListener.Event event)
event
- event to broadcast
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |