M
- Type of FactoryManager
S
- Type of AbstractSession
public abstract class AbstractSessionFactory<M extends FactoryManager,S extends AbstractSession> extends AbstractSessionIoHandler
Modifier and Type | Field and Description |
---|---|
private M |
manager |
log
Modifier | Constructor and Description |
---|---|
protected |
AbstractSessionFactory(M manager) |
Modifier and Type | Method and Description |
---|---|
protected S |
createSession(IoSession ioSession) |
protected abstract S |
doCreateSession(IoSession ioSession) |
M |
getFactoryManager() |
protected S |
setupSession(S session) |
exceptionCaught, messageReceived, sessionClosed, sessionCreated
private final M extends FactoryManager manager
protected AbstractSessionFactory(M manager)
public M getFactoryManager()
protected S createSession(IoSession ioSession) throws java.lang.Exception
createSession
in class AbstractSessionIoHandler
java.lang.Exception
protected abstract S doCreateSession(IoSession ioSession) throws java.lang.Exception
java.lang.Exception