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/AbstractMailConnectionHandler.java

    r253 r266  
    315315         * a new request arrives, or it is commanded to shutdown. 
    316316         * </p> 
    317          */ 
    318         protected abstract void handleBeginIdle(); 
     317     *  
     318     * @throw IOException on I/O errors 
     319     * @throw MailException on protocol errors 
     320         */ 
     321        protected abstract void handleBeginIdle() throws IOException, MailException; 
    319322         
    320323    /** 
     
    373376        protected Queue getRequestQueue() { 
    374377                return this.requestQueue; 
     378        } 
     379         
     380        /** 
     381         * Gets whether a shutdown is currently in progress. 
     382         * @return True if shutdown is in progress. 
     383         */ 
     384        protected boolean getShutdownInProgress() { 
     385                return this.shutdownInProgress; 
     386        } 
     387         
     388        /** 
     389         * Sleep the connection thread. 
     390         * @param time Time to sleep, in milliseconds. 
     391         */ 
     392        protected void sleepConnectionThread(long time) { 
     393                if(!connectionThread.isShutdown()) { 
     394                        try { 
     395                                ConnectionThread.sleep(time); 
     396                        } catch (InterruptedException e) { } 
     397                } 
    375398        } 
    376399