public interface SessionListener
SessionAcceptor| Modifier and Type | Method and Description |
|---|---|
void |
acceptFailed(IOException cause)
Called when session channel cannot be accepted.
|
void |
established(Session session)
Called at most once as soon as session has been established.
|
void |
establishFailed(IOException cause)
Called when session channel was accepted, but session was terminated
before establishment completed.
|
void established(Session session) throws IOException
accept is
called to accept new sessions. Afterwards, this method may safely block,
and it can interact with the session too.IOException - any thrown exception forces the session to close,
and the cause is passed to the thread's uncaught exception handler.void establishFailed(IOException cause) throws IOException
accept is called to accept new sessions.IOException - cause can be rethrown, but it is passed to the
thread's uncaught exception handler.void acceptFailed(IOException cause) throws IOException
accept again, because no new
sessions can be accepted.IOException - cause can be rethrown, but it is passed to the
thread's uncaught exception handler.Copyright © 2006–2015 Cojen. All rights reserved.