public class NioServer extends Object
| Constructor and Description |
|---|
NioServer(int readWriteThreads,
ServerCfg... cfgs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
Dispatcher |
getAcceptDispatcher() |
int |
getActiveConnections() |
Dispatcher |
getReadWriteDispatcher() |
void |
shutdown()
Shutdown.
|
public NioServer(int readWriteThreads,
ServerCfg... cfgs)
readWriteThreads - - number of threads that will be used for handling read and
write.dcPool - - ThreadPool on witch Disconnection tasks will be executed.cfgs - - Server Configurationspublic void connect()
public final Dispatcher getAcceptDispatcher()
public final Dispatcher getReadWriteDispatcher()
public final int getActiveConnections()
public final void shutdown()
Copyright © 2014–2015. All rights reserved.