|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.nio.SelectorThreadPool
public class SelectorThreadPool
Maintains a pool of SelectoThreads increasing the pool when required
and always maintaining the minimum number of permanent threads required.
| Constructor Summary | |
|---|---|
SelectorThreadPool(SelectorThreadImpl impl,
int permanentThreads,
int maximumChannels,
int idleServicePeriod,
int inactivePeriodsPerIdleEvent,
java.nio.channels.spi.SelectorProvider selectorProvider)
Construct a thread pool. |
|
| Method Summary | |
|---|---|
SelectorThread |
selectNextThread()
Select the next available thread with the minimum load. |
void |
shutdown()
Shutdown all threads in the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectorThreadPool(SelectorThreadImpl impl,
int permanentThreads,
int maximumChannels,
int idleServicePeriod,
int inactivePeriodsPerIdleEvent,
java.nio.channels.spi.SelectorProvider selectorProvider)
throws java.io.IOException
impl - SelectorThreadImplpermanentThreads - intmaximumChannels - intidleServicePeriod - intinactivePeriodsPerIdleEvent - intselectorProvider - SelectorProvider
java.io.IOException| Method Detail |
|---|
public void shutdown()
public SelectorThread selectNextThread()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||