| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private final AtomicBoolean | |
| private static final Logger | |
| private volatile int | maxPoolSize
The max number of |
| private static final int | |
| private final AtomicInteger | missesCounter
Number of times poll execution didn't find the available selector in the pool. |
| private final AtomicInteger | poolSize
The current number of Selectors in the pool. |
| private final SelectorProvider | |
| private final Queue | selectors
Cache of |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Selector | |
| public synchronized void | |
| private void | |
| public SelectorProvider | |
| public void | |
| public Selector | |
| public synchronized void | |
| public synchronized int |
| DEFAULT_SELECTORS_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_SELECTORS_COUNT | |
| isClosed | back to summary |
|---|---|
| private final AtomicBoolean isClosed | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| maxPoolSize | back to summary |
|---|---|
| private volatile int maxPoolSize The max number of | |
| MISS_THRESHOLD | back to summary |
|---|---|
| private static final int MISS_THRESHOLD | |
| missesCounter | back to summary |
|---|---|
| private final AtomicInteger missesCounter Number of times poll execution didn't find the available selector in the pool. | |
| poolSize | back to summary |
|---|---|
| private final AtomicInteger poolSize The current number of Selectors in the pool. | |
| selectorProvider | back to summary |
|---|---|
| private final SelectorProvider selectorProvider | |
| selectors | back to summary |
|---|---|
| private final Queue<Selector> selectors Cache of | |
| TemporarySelectorPool | back to summary |
|---|---|
| public TemporarySelectorPool(final SelectorProvider selectorProvider) | |
| TemporarySelectorPool | back to summary |
|---|---|
| public TemporarySelectorPool(final SelectorProvider selectorProvider, final int selectorsCount) | |
| checkSelector | back to summary |
|---|---|
| private Selector checkSelector(final Selector selector) | |
| close | back to summary |
|---|---|
| public synchronized void close() | |
| closeSelector | back to summary |
|---|---|
| private void closeSelector(Selector selector) | |
| getSelectorProvider | back to summary |
|---|---|
| public SelectorProvider getSelectorProvider() | |
| offer | back to summary |
|---|---|
| public void offer(Selector selector) | |
| poll | back to summary |
|---|---|
| public Selector poll() throws IOException | |
| setSize | back to summary |
|---|---|
| public synchronized void setSize(int size) throws IOException | |
| size | back to summary |
|---|---|
| public synchronized int size() | |