org.xsocket.stream
Interface IDisconnectHandler

Package class diagram package IDisconnectHandler
All Superinterfaces:
IHandler
All Known Implementing Classes:
HandlerChain

public interface IDisconnectHandler
extends IHandler

Handles the disconnecting of connections.
The disconnecting of a connection occurs in three ways:


Method Summary
 boolean onDisconnect(INonBlockingConnection connection)
          handles disconnecting of a connection
 

Method Detail

onDisconnect

boolean onDisconnect(INonBlockingConnection connection)
                     throws java.io.IOException
handles disconnecting of a connection

Parameters:
connection - the closed connection
Returns:
true for positive result of handling, false for negative result of handling
Throws:
java.io.IOException - If some I/O error occurs.