com.funambol.email.inboxlistener.engine
Class MailboxListener

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

public class MailboxListener
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MailboxListener(boolean startupNotification, MailboxAccount mba, MSAccount msa, WSAccount wsa)
           
 
Method Summary
 void run()
          this thread is not always connected to the mailbox.
 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

MailboxListener

public MailboxListener(boolean startupNotification,
                       MailboxAccount mba,
                       MSAccount msa,
                       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


stopThread

public void stopThread()


Copyright © 2003-2006 Funambol.