クラス
javax.mail.event.ConnectionEvent の使用

ConnectionEvent を使用しているパッケージ
javax.mail.event JavaMail API のリスナーとイベントです。 
 

javax.mail.event での ConnectionEvent の使用
 

ConnectionEvent 型のパラメータを持つ javax.mail.event のメソッド
 void ConnectionListener.closed(ConnectionEvent e)
          Store/Folder/Transport が閉じられると呼び出されます。
 void ConnectionAdapter.closed(ConnectionEvent e)
           
 void ConnectionListener.disconnected(ConnectionEvent e)
          Store が切断されると呼び出されます。
 void ConnectionAdapter.disconnected(ConnectionEvent e)
           
 void ConnectionListener.opened(ConnectionEvent e)
          Store/Folder/Transport が開かれると呼び出されます。
 void ConnectionAdapter.opened(ConnectionEvent e)