com.funambol.email.inboxlistener.engine
Class MailboxManager

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.funambol.email.inboxlistener.engine.MailboxManager
All Implemented Interfaces:
java.lang.Runnable

public class MailboxManager
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MailboxManager(boolean startupNotification, MailboxAccount _mba, MSAccount _msa, DBAccount _dba, WSAccount _wsa)
           
 
Method Summary
 void closeMailServerConnection()
          close the Mail Server Connection
 void run()
          this thread is not always connected to the mailbox.
 void setMaxEmailNumber(int _maxEmailNumber)
           
 void setPassword(java.lang.String _password)
           
 void stopThread()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailboxManager

public MailboxManager(boolean startupNotification,
                      MailboxAccount _mba,
                      MSAccount _msa,
                      DBAccount _dba,
                      WSAccount _wsa)
Method Detail

run

public void run()
this thread is not always connected to the mailbox. every X seconds (interval) it starts a connection and read the ids in the inbox folder; then compares the previous time read ids. If there are new mails call the Sync4j AdminManager web service in order to trigger the push message


setMaxEmailNumber

public void setMaxEmailNumber(int _maxEmailNumber)

setPassword

public void setPassword(java.lang.String _password)

closeMailServerConnection

public void closeMailServerConnection()
                               throws InboxListenerException
close the Mail Server Connection

Throws:
InboxListenerException

stopThread

public void stopThread()


Copyright © 2003-2006 Funambol.