public abstract class AbstractSessionFactory extends AbstractSessionIoHandler
| Modifier and Type | Field and Description |
|---|---|
protected List<SessionListener> |
listeners |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSessionFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SessionListener listener)
Add a session |listener|.
|
protected AbstractSession |
createSession(IoSession ioSession) |
protected abstract AbstractSession |
doCreateSession(IoSession ioSession) |
void |
removeListener(SessionListener listener)
Remove a session |listener|.
|
exceptionCaught, messageReceived, sessionClosed, sessionCreatedprotected final List<SessionListener> listeners
protected AbstractSession createSession(IoSession ioSession) throws Exception
createSession in class AbstractSessionIoHandlerExceptionprotected abstract AbstractSession doCreateSession(IoSession ioSession) throws Exception
Exceptionpublic void addListener(SessionListener listener)
listener - the session listener to addpublic void removeListener(SessionListener listener)
listener - the session listener to removeCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.