org.apache.james.mailboxmanager.impl
Class UidChangeTracker

java.lang.Object
  extended by org.apache.james.mailboxmanager.impl.UidChangeTracker
All Implemented Interfaces:
Constants

public class UidChangeTracker
extends java.lang.Object
implements Constants


Field Summary
 
Fields inherited from interface org.apache.james.mailboxmanager.Constants
MSN_INFINITY, UID_INFINITY
 
Constructor Summary
UidChangeTracker(long lastUid)
           
 
Method Summary
 void addMailboxListener(MailboxListener listener)
           
 void expunged(long[] uidsExpunged)
           
 void flagsUpdated(java.util.Collection messageResults, long sessionId)
          Indicates that the flags on the given messages may have been updated.
 void flagsUpdated(MessageFlags[] messageFlags, long sessionId)
          Indicates that the flags on the given messages may have been updated.
 void flagsUpdated(MessageResult messageResult, long sessionId)
          Indicates that the flags on the given message may have been updated.
 void found(MessageResult messageResult)
           
 void found(UidRange range, java.util.Collection messageResults)
           
 void found(UidRange range, MessageFlags[] messageFlags)
           
 void foundLastUid(long foundLastUid)
           
 long getLastScannedUid()
           
 long getLastUid()
           
 void mailboxDeleted(long sessionId)
           
 void removeMailboxListener(MailboxListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UidChangeTracker

public UidChangeTracker(long lastUid)
Method Detail

expunged

public void expunged(long[] uidsExpunged)

flagsUpdated

public void flagsUpdated(MessageFlags[] messageFlags,
                         long sessionId)
Indicates that the flags on the given messages may have been updated.

Parameters:
messageFlags - flags
sessionId - id of the session upating the flags
See Also:
flagsUpdated(MessageResult, long)

flagsUpdated

public void flagsUpdated(java.util.Collection messageResults,
                         long sessionId)
                  throws MailboxManagerException
Indicates that the flags on the given messages may have been updated.

Parameters:
messageResults - results
sessionId - id of the session upating the flags
Throws:
MailboxManagerException
See Also:
flagsUpdated(MessageResult, long)

flagsUpdated

public void flagsUpdated(MessageResult messageResult,
                         long sessionId)
                  throws MailboxManagerException
Indicates that the flags on the given message may have been updated.

Parameters:
messageResult - result of update
sessionId - id of the session updating the flags
Throws:
MailboxManagerException

found

public void found(UidRange range,
                  java.util.Collection messageResults)
           throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

found

public void found(UidRange range,
                  MessageFlags[] messageFlags)

found

public void found(MessageResult messageResult)
           throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getLastUid

public long getLastUid()

foundLastUid

public void foundLastUid(long foundLastUid)

getLastScannedUid

public long getLastScannedUid()

addMailboxListener

public void addMailboxListener(MailboxListener listener)

removeMailboxListener

public void removeMailboxListener(MailboxListener listener)

mailboxDeleted

public void mailboxDeleted(long sessionId)


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.