1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.mail.event;
  6. import java.util.*;
  7. /**
  8. * This is the Listener interface for Connection events.
  9. *
  10. * @author John Mani
  11. */
  12. public interface ConnectionListener extends java.util.EventListener {
  13. /**
  14. * Invoked when a Store/Folder/Transport is opened.
  15. */
  16. public void opened(ConnectionEvent e);
  17. /**
  18. * Invoked when a Store is disconnected. Note that a folder
  19. * cannot be disconnected, so a folder will not fire this event
  20. */
  21. public void disconnected(ConnectionEvent e);
  22. /**
  23. * Invoked when a Store/Folder/Transport is closed.
  24. */
  25. public void closed(ConnectionEvent e);
  26. }