| | 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; |