com.funambol.email.inboxlistener.engine
Class MailboxListener

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

public class MailboxListener
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopThread

public void stopThread()


Copyright © 2003-2006 Funambol.