public abstract class AbstractSessionFactory extends AbstractSessionIoHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<SessionListener> |
listeners |
| Constructor and Description |
|---|
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 java.util.List<SessionListener> listeners
protected AbstractSession createSession(IoSession ioSession) throws java.lang.Exception
createSession in class AbstractSessionIoHandlerjava.lang.Exceptionprotected abstract AbstractSession doCreateSession(IoSession ioSession) throws java.lang.Exception
java.lang.Exceptionpublic void addListener(SessionListener listener)
listener - the session listener to addpublic void removeListener(SessionListener listener)
listener - the session listener to removeCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.