org.apache.james.mailboxmanager.util
Class UidToMsnConverter

java.lang.Object
  extended by org.apache.james.mailboxmanager.util.UidToMsnConverter
All Implemented Interfaces:
MailboxListener

public class UidToMsnConverter
extends java.lang.Object
implements MailboxListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.mailboxmanager.MailboxListener
MailboxListener.Added, MailboxListener.Event, MailboxListener.Expunged, MailboxListener.FlagsUpdated, MailboxListener.MailboxDeletionEvent, MailboxListener.MessageEvent
 
Field Summary
protected  int highestMsn
           
protected  long highestUid
           
protected  java.util.SortedMap msnToUid
           
protected  java.util.SortedMap uidToMsn
           
 
Constructor Summary
UidToMsnConverter(java.util.Collection uids)
           
 
Method Summary
protected  void add(int msn, long uid)
           
 void add(long uid)
           
 void event(MailboxListener.Event event)
           
 void expunge(long uid)
           
 int getMsn(long uid)
           
 long getUid(int msn)
           
protected  void remove(int msn, long uid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msnToUid

protected java.util.SortedMap msnToUid

uidToMsn

protected java.util.SortedMap uidToMsn

highestUid

protected long highestUid

highestMsn

protected int highestMsn
Constructor Detail

UidToMsnConverter

public UidToMsnConverter(java.util.Collection uids)
Method Detail

getUid

public long getUid(int msn)

getMsn

public int getMsn(long uid)

add

protected void add(int msn,
                   long uid)

expunge

public void expunge(long uid)

remove

protected void remove(int msn,
                      long uid)

add

public void add(long uid)

event

public void event(MailboxListener.Event event)
Specified by:
event in interface MailboxListener
See Also:
MailboxListener.event(org.apache.james.mailboxmanager.MailboxListener.Event)


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