Show
Ignore:
Timestamp:
08/04/08 09:17:20 PM (5 months ago)
Author:
octorian
Message:

Initial IMAP IDLE implementation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/LogicMail/src/org/logicprobe/LogicMail/mail/IncomingMailClient.java

    r264 r266  
    6969     
    7070    /** 
     71     * Return whether the underlying protocol supports an idle connection mode. 
     72     *  
     73     * @return True if an idle mode is supported, false otherwise 
     74     */ 
     75    public abstract boolean hasIdle(); 
     76     
     77    /** 
    7178     * Get the mail folder tree. 
    7279     * This should return null if folders are not supported 
     
    173180     */ 
    174181    public abstract void undeleteMessage(FolderMessage folderMessage) throws IOException, MailException; 
     182 
     183    /** 
     184     * Begins the idle mode for the underlying protocol. 
     185     * This should do nothing if the underlying protocol does not support idling. 
     186     *  
     187     * @throws IOException on I/O errors 
     188     * @throws MailException on protocol errors 
     189     */ 
     190    public abstract void idleModeBegin() throws IOException, MailException; 
     191     
     192    /** 
     193     * Ends the idle mode for the underlying protocol. 
     194     * This should do nothing if the underlying protocol does not support idling. 
     195     *  
     196     * @throws IOException on I/O errors 
     197     * @throws MailException on protocol errors 
     198     */ 
     199    public abstract void idleModeEnd() throws IOException, MailException; 
     200 
     201    /** 
     202     * Polls the connecting during the idle mode for the underlying protocol. 
     203     * This should do nothing if the underlying protocol does not support idling. 
     204     *  
     205     * @return True if the mailbox has new data, false otherwise. 
     206     * @throws IOException on I/O errors 
     207     * @throws MailException on protocol errors 
     208     */ 
     209    public abstract boolean idleModePoll() throws IOException, MailException; 
    175210}