| com.tc.net.core.event.TCConnectionEventListener
All known Subclasses: com.tc.net.protocol.transport.MessageTransportBase, com.tc.net.protocol.EchoSink,
TCConnectionEventListener | public interface TCConnectionEventListener (Code) | | Interface for receiving connection events. These event handler will more than likely be called on the main
communications thread. It is unwise to do "heavy" operations in these handlers. In particular one should not be
calling back into the comms layer (for example to create a new connection or something)
Exceptions that occur in event handlers will caught and logged. An exception in any one event listener will not
prevent other listeners from also receiving the event
author: teck |
closeEvent | public void closeEvent(TCConnectionEvent event)(Code) | | Connection closed event will only be called once and will only be called if connection was actually ever connected.
If a non-connected channel is closed you will not receice this event
|
connectEvent | public void connectEvent(TCConnectionEvent event)(Code) | | Connect event will be called once per connection connect
|
endOfFileEvent | public void endOfFileEvent(TCConnectionEvent event)(Code) | | EOF event is thrown when a clean EOF is read from the network. If a network exception prematurely causes a
connection to end, you won't see an EOF event
|
errorEvent | public void errorEvent(TCConnectionErrorEvent errorEvent)(Code) | | Error event will be called any time an exception occurs as part of doing an IO operation (read, write, connect,
accept) on a given connection
|
|
|