com.hs.mail.imap.event
Class MessageEvent

java.lang.Object
  extended by com.hs.mail.imap.event.MessageEvent
All Implemented Interfaces:
EventListener.Event
Direct Known Subclasses:
FlagUpdatedEvent, MessageAddedEvent, MessageExpungedEvent

public abstract class MessageEvent
extends Object
implements EventListener.Event

Common base class for message events.

Since:
Jul 30, 2010
Author:
Won Chul Doh

Field Summary
 
Fields inherited from interface com.hs.mail.imap.event.EventListener.Event
ANONYMOUS_SESSION_ID
 
Constructor Summary
protected MessageEvent(long sessionID, long mailboxID)
           
 
Method Summary
 long getMailboxID()
          Returns the ID of the mailbox where this event was triggered.
 long getSessionID()
          Returns the ID of session who triggered this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageEvent

protected MessageEvent(long sessionID,
                       long mailboxID)
Method Detail

getSessionID

public long getSessionID()
Description copied from interface: EventListener.Event
Returns the ID of session who triggered this event.

Specified by:
getSessionID in interface EventListener.Event
Returns:
ID of the session

getMailboxID

public long getMailboxID()
Description copied from interface: EventListener.Event
Returns the ID of the mailbox where this event was triggered.

Specified by:
getMailboxID in interface EventListener.Event
Returns:
ID of the mailbox


Copyright © 2011. All Rights Reserved.