public abstract class DispatcherManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
started |
| Constructor and Description |
|---|
DispatcherManager(Codec codec) |
DispatcherManager(Codec codec,
ExecutorService executor,
int dispactherCount) |
DispatcherManager(Codec codec,
ExecutorService executor,
int dispatcherCount,
String dispatcherNamePrefix) |
| Modifier and Type | Method and Description |
|---|---|
abstract EventAdaptor |
buildEventAdaptor() |
static int |
defaultDispatcherSize() |
Codec |
getCodec() |
Dispatcher |
getDispatcher(int index) |
Dispatcher |
getDispatcher(SelectionKey key) |
ExecutorService |
getExecutor() |
boolean |
isStarted() |
static ExecutorService |
newDefaultExecutor() |
Dispatcher |
nextDispatcher() |
void |
registerSession(int ops,
Session sess) |
void |
start() |
void |
stop() |
public DispatcherManager(Codec codec, ExecutorService executor, int dispatcherCount, String dispatcherNamePrefix) throws IOException
IOExceptionpublic DispatcherManager(Codec codec, ExecutorService executor, int dispactherCount) throws IOException
IOExceptionpublic DispatcherManager(Codec codec) throws IOException
IOExceptionpublic Dispatcher getDispatcher(int index)
public Dispatcher nextDispatcher()
public void registerSession(int ops,
Session sess)
throws IOException
IOExceptionpublic Dispatcher getDispatcher(SelectionKey key)
public void start()
public void stop()
public boolean isStarted()
public Codec getCodec()
public ExecutorService getExecutor()
public static int defaultDispatcherSize()
public static ExecutorService newDefaultExecutor()
public abstract EventAdaptor buildEventAdaptor()
Copyright © 2015. All rights reserved.