/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
notifyConnectionListeners(ConnectionEvent.OPENED);
/** * Close this service and terminate its physical connection. * The default implementation simply calls setConnected(false) and then * sends a CLOSED event to all registered ConnectionListeners. * Subclasses overriding this method should still ensure it is closed; they should * also ensure that it is called if the connection is closed automatically, for * for example in a finalizer. * *@throws MessagingException if there were errors closing; the connection is still closed */ public void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
notifyConnectionListeners(ConnectionEvent.OPENED);
/** * Close this service and terminate its physical connection. * The default implementation simply calls setConnected(false) and then * sends a CLOSED event to all registered ConnectionListeners. * Subclasses overriding this method should still ensure it is closed; they should * also ensure that it is called if the connection is closed automatically, for * for example in a finalizer. * *@throws MessagingException if there were errors closing; the connection is still closed */ public void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
/** * Close this service and terminate its connection. A close * ConnectionEvent is delivered to any ConnectionListeners. Any * Messaging components (Folders, Messages, etc.) belonging to this * service are invalid after this service is closed. Note that the service * is closed even if this method terminates abnormally by throwing * a MessagingException. <p> * * This implementation uses <code>setConnected(false)</code> to set * this service's connected state to <code>false</code>. It will then * send a close ConnectionEvent to any registered ConnectionListeners. * Subclasses overriding this method to do implementation specific * cleanup should call this method as a last step to insure event * notification, probably by including a call to <code>super.close()</code> * in a <code>finally</code> clause. * * @see javax.mail.event.ConnectionEvent * @throws MessagingException for errors while closing */ public synchronized void close() throws MessagingException { setConnected(false); notifyConnectionListeners(ConnectionEvent.CLOSED); }
notifyConnectionListeners(ConnectionEvent.OPENED);
notifyConnectionListeners(ConnectionEvent.OPENED);
notifyConnectionListeners(ConnectionEvent.OPENED);
notifyConnectionListeners(ConnectionEvent.OPENED);
notifyConnectionListeners(ConnectionEvent.OPENED);
notifyConnectionListeners(ConnectionEvent.OPENED);