KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > MessageTransportListener


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol.transport;
5
6 /**
7  * Listener for MessageTransport events
8  */

9 public interface MessageTransportListener {
10   
11   /**
12    * Called when the transport's connection is established.
13    */

14   public void notifyTransportConnected(MessageTransport transport);
15   
16   /**
17    * Called when the transport's connection goes away
18    */

19   public void notifyTransportDisconnected(MessageTransport transport);
20
21   /**
22    * Called when the transport tries to connect.
23    */

24   public void notifyTransportConnectAttempt(MessageTransport transport);
25   
26   /**
27    * Called when the transport is closed.
28    */

29   public void notifyTransportClosed(MessageTransport transport);
30 }
31
Popular Tags