Package | Description |
---|---|
org.snf4j.core.pool |
Provides classes and interfaces for pooling the selector loops.
|
Modifier and Type | Field and Description |
---|---|
protected SelectorLoop[] |
DefaultSelectorLoopPool.pool
The backing array for this selector-pool
|
Modifier and Type | Method and Description |
---|---|
SelectorLoop |
ISelectorLoopPool.getLoop(SelectableChannel channel)
Gets the best selector loop from this pool that should be used to process
given channel.
|
SelectorLoop |
DefaultSelectorLoopPool.getLoop(SelectableChannel channel)
Gets the best selector loop from this pool that should be used to process
given channel.
|
SelectorLoop[] |
DefaultSelectorLoopPool.getPool()
Gets an array of all selector loops created in this pool.
|
Modifier and Type | Method and Description |
---|---|
void |
ISelectorLoopPool.update(SelectorLoop loop,
int newSize,
int prevSize)
Notifies the pool that given selector loop is now processing different
number of channels.
|
void |
DefaultSelectorLoopPool.update(SelectorLoop loop,
int newSize,
int prevSize) |
Copyright © 2017–2021 SNF4J.ORG. All rights reserved.