|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.util.SelectorFactory
public class SelectorFactory
Factory used to dispatch/share Selector.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_SELECTORS
|
static long |
timeout
The timeout before we exit. |
| Constructor Summary | |
|---|---|
SelectorFactory()
|
|
| Method Summary | |
|---|---|
static int |
getMaxSelectors()
Returns max selector pool size |
static Selector |
getSelector()
Get a exclusive Selector |
static void |
returnSelector(Selector s)
Return the Selector to the cache |
static void |
setMaxSelectors(int size)
Set max selector pool size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_SELECTORS
public static long timeout
| Constructor Detail |
|---|
public SelectorFactory()
| Method Detail |
|---|
public static final void setMaxSelectors(int size)
throws IOException
size - max pool size
IOExceptionpublic static final int getMaxSelectors()
public static final Selector getSelector()
Selector
Selectorpublic static final void returnSelector(Selector s)
Selector to the cache
s - Selector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||