A handle which represents connection between two end-points regardless of transport types.
{@link IoSession} provides user-defined attributes. User-defined attributesare application-specific data which is associated with a session. It often contains objects that represents the state of a higher-level protocol and becomes a way to exchange data between filters and handlers.
Adjusting Transport Type Specific Properties
You can simply downcast the session to an appropriate subclass.
Thread Safety
{@link IoSession} is thread-safe. But please note that performingmore than one {@link #write(Object)} calls at the same time willcause the {@link IoFilter#filterWrite(IoFilter.NextFilter,IoSession,WriteRequest)}is executed simultaneously, and therefore you have to make sure the {@link IoFilter} implementations you're using are thread-safe, too.
Equality of Sessions
{@link #equals(Object)} and {@link #hashCode()} shall not be overridento the default behavior that is defined in {@link Object}.
@author The Apache MINA Project (dev@mina.apache.org)
@version $Rev: 645469 $, $Date: 2008-04-07 20:49:36 +0900 (Mon, 07 Apr 2008) $