|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.engine.io.SelectorFactory
public class SelectorFactory
Factory used to dispatch/share Selector.
| Field Summary | |
|---|---|
static int |
MAX_ATTEMPTS
The number of attempts to find an available selector. |
static int |
MAX_SELECTORS
The maximum number of Selector to create. |
static long |
TIMEOUT
The timeout before we exit. |
| Constructor Summary | |
|---|---|
SelectorFactory()
|
|
| Method Summary | |
|---|---|
static Selector |
getSelector()
Get an exclusive Selector. |
static void |
returnSelector(Selector selector)
Returns the Selector to the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_SELECTORS
Selector to create.
public static final int MAX_ATTEMPTS
public static final long TIMEOUT
| Constructor Detail |
|---|
public SelectorFactory()
| Method Detail |
|---|
public static final Selector getSelector()
Selector.
Selector.public static final void returnSelector(Selector selector)
Selector to the cache.
selector - The Selector to return.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||