public class SelectorManager extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
SelectorManager()
Constructs a new Selector Manager.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(SelectorRequest request)
Adds a new request entity to the requestor pool.
|
void |
configure(Configuration configuration)
Gives the SelectorManager an oportunity to configure
itself.
|
void |
halt()
signals the run loop to terminate
|
int |
poolSize(SelectorRequest.Type type)
get the current buffer depth for the given type of request
|
void |
remove(SelectorRequest request)
Remove an existing request before it has expired
|
void |
run()
The thread function
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public SelectorManager()
public void configure(Configuration configuration) throws ConfigurationException
ConfigurationException
public void run()
public void halt()
public int poolSize(SelectorRequest.Type type)
type
- the request type of interestpublic void remove(SelectorRequest request)
request
- is the event to be removed from the poolpublic boolean add(SelectorRequest request)
request
- is the event to be added to the poolCopyright © 2017 JacORB. All rights reserved.