Changeset 266 for trunk/LogicMail/src/org/logicprobe/LogicMail/mail/AbstractMailConnectionHandler.java
- Timestamp:
- 08/04/08 09:17:20 PM (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/LogicMail/src/org/logicprobe/LogicMail/mail/AbstractMailConnectionHandler.java
r253 r266 315 315 * a new request arrives, or it is commanded to shutdown. 316 316 * </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; 319 322 320 323 /** … … 373 376 protected Queue getRequestQueue() { 374 377 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 } 375 398 } 376 399
