public class SelectorFactory extends Object
Selector
.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SelectorFactory() |
Modifier and Type | Method and Description |
---|---|
static Selector |
getSelector()
Get an exclusive
Selector . |
static void |
returnSelector(Selector selector)
Returns the
Selector to the cache. |
public static final int MAX_SELECTORS
Selector
to create.public static final int MAX_ATTEMPTS
public static final long TIMEOUT
Copyright © 2005–2014. All rights reserved.