org.xsocket.connection
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:

Author:
grro@xsocket.org

Field Summary
 
Fields inherited from interface org.xsocket.connection.IHandler
DEFAULT_EXECUTION_MODE
 
Method Summary
 boolean onDisconnect(INonBlockingConnection connection)
          handles disconnecting of a connection
 

Method Detail

onDisconnect

boolean onDisconnect(INonBlockingConnection connection)
                     throws 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:
IOException - If some I/O error occurs.


Copyright 2008 xSocket.org