| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static interface | |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private boolean | |
| private long | |
| private long | |
| private long | |
| private transient SelectorManager. | |
| private int | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract SocketChannel | |
| protected void | |
| public abstract boolean | |
| public void | |
| protected void | |
| protected void | |
| protected abstract void | |
| protected abstract void | |
| public long | |
| public long | |
| public long | |
| public int | |
| public boolean | |
| protected abstract Connection | |
| protected abstract SelectChannelEndPoint | |
| public void | |
| public void | |
| public void | |
| public void | setLowResourcesConnections(long
the number of connections lowResourcesConnections)Set the number of connections, which if exceeded places this manager in low resources state. |
| public void | setLowResourcesMaxIdleTime(long
the period in ms that a connection is allowed to be idle when this SelectSet has more connections than lowResourcesMaxIdleTime)getLowResourcesConnections()
|
| public void | setMaxIdleTime(long
The maximum period in milli seconds that a connection may be idle before it is closed. maxIdleTime)
|
| public void |
| __BUSY_KEY | back to summary |
|---|---|
| private static final int __BUSY_KEY | |
| __BUSY_PAUSE | back to summary |
|---|---|
| private static final int __BUSY_PAUSE | |
| __JVMBUG_THRESHHOLD | back to summary |
|---|---|
| private static final int __JVMBUG_THRESHHOLD | |
| __MAX_SELECTS | back to summary |
|---|---|
| private static final int __MAX_SELECTS | |
| __MONITOR_PERIOD | back to summary |
|---|---|
| private static final int __MONITOR_PERIOD | |
| _delaySelectKeyUpdate | back to summary |
|---|---|
| private boolean _delaySelectKeyUpdate | |
| _lowResourcesConnections | back to summary |
|---|---|
| private long _lowResourcesConnections | |
| _lowResourcesMaxIdleTime | back to summary |
|---|---|
| private long _lowResourcesMaxIdleTime | |
| _maxIdleTime | back to summary |
|---|---|
| private long _maxIdleTime | |
| _selectSet | back to summary |
|---|---|
| private transient SelectorManager. | |
| _selectSets | back to summary |
|---|---|
| private int _selectSets | |
| _set | back to summary |
|---|---|
| private volatile int _set | |
| SelectorManager | back to summary |
|---|---|
| public SelectorManager() | |
| acceptChannel | back to summary |
|---|---|
| protected abstract SocketChannel acceptChannel(SelectionKey key) throws IOException | |
| connectionFailed | back to summary |
|---|---|
| protected void connectionFailed(SocketChannel channel, Throwable ex, Object attachment) | |
| dispatch | back to summary |
|---|---|
| public abstract boolean dispatch(Runnable task) throws IOException | |
| doSelect | back to summary |
|---|---|
| public void doSelect(int acceptorID) throws IOException | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception | |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception | |
| endPointClosed | back to summary |
|---|---|
| protected abstract void endPointClosed(SelectChannelEndPoint endpoint) | |
| endPointOpened | back to summary |
|---|---|
| protected abstract void endPointOpened(SelectChannelEndPoint endpoint) | |
| getLowResourcesConnections | back to summary |
|---|---|
public long getLowResourcesConnections()
| |
| getLowResourcesMaxIdleTime | back to summary |
|---|---|
public long getLowResourcesMaxIdleTime()
| |
| getMaxIdleTime | back to summary |
|---|---|
| public long getMaxIdleTime() | |
| getSelectSets | back to summary |
|---|---|
| public int getSelectSets() | |
| isDelaySelectKeyUpdate | back to summary |
|---|---|
| public boolean isDelaySelectKeyUpdate() | |
| newConnection | back to summary |
|---|---|
| protected abstract Connection newConnection(SocketChannel channel, SelectChannelEndPoint endpoint) | |
| newEndPoint | back to summary |
|---|---|
| protected abstract SelectChannelEndPoint newEndPoint(SocketChannel channel, SelectorManager. | |
| register | back to summary |
|---|---|
| public void register(SocketChannel channel, Object att) throws IOException Register a channel
| |
| register | back to summary |
|---|---|
| public void register(ServerSocketChannel acceptChannel) throws IOException Register a serverchannel | |
| setDelaySelectKeyUpdate | back to summary |
|---|---|
| public void setDelaySelectKeyUpdate(boolean delaySelectKeyUpdate) | |
| setLowResourcesConnections | back to summary |
|---|---|
| public void setLowResourcesConnections(long lowResourcesConnections) Set the number of connections, which if exceeded places this manager in low resources state. This is not an exact measure as the connection count is averaged over the select sets.
| |
| setLowResourcesMaxIdleTime | back to summary |
|---|---|
public void setLowResourcesMaxIdleTime(long lowResourcesMaxIdleTime)
| |
| setMaxIdleTime | back to summary |
|---|---|
public void setMaxIdleTime(long maxIdleTime)
| |
| setSelectSets | back to summary |
|---|---|
| public void setSelectSets(int selectSets) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Object | |
| pack-priv final SelectableChannel |
| Access | Constructor and Description |
|---|---|
| public |
| _attachment | back to summary |
|---|---|
| pack-priv final Object _attachment | |
| _channel | back to summary |
|---|---|
| pack-priv final SelectableChannel _channel | |
| ChangeSelectableChannel | back to summary |
|---|---|
| public ChangeSelectableChannel(SelectableChannel channel, Object attachment) | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| run | back to summary |
|---|---|
| public void run() | |
| Modifier and Type | Field and Description |
|---|---|
| private SelectionKey | |
| private int | |
| private transient int | |
| private transient List | |
| private transient Timeout | |
| private transient int | |
| private int | |
| private int | |
| private int | |
| private long | |
| private long | |
| private long | |
| private transient int | |
| private int | |
| private boolean | |
| private transient Timeout | |
| private volatile boolean | |
| private transient Selector | |
| private int | |
| private transient int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public SelectorManager | |
| public long | |
| pack-priv Selector | |
| public void | |
| public void | |
| pack-priv void | |
| public void |
| _busyKey | back to summary |
|---|---|
| private SelectionKey _busyKey | |
| _busyKeyCount | back to summary |
|---|---|
| private int _busyKeyCount | |
| _change | back to summary |
|---|---|
| private transient int _change | |
| _changes | back to summary |
|---|---|
| private transient List<E>[] _changes | |
| _idleTimeout | back to summary |
|---|---|
| private transient Timeout _idleTimeout | |
| _jvmBug | back to summary |
|---|---|
| private transient int _jvmBug | |
| _jvmFix0 | back to summary |
|---|---|
| private int _jvmFix0 | |
| _jvmFix1 | back to summary |
|---|---|
| private int _jvmFix1 | |
| _jvmFix2 | back to summary |
|---|---|
| private int _jvmFix2 | |
| _log | back to summary |
|---|---|
| private long _log | |
| _monitorNext | back to summary |
|---|---|
| private long _monitorNext | |
| _monitorStart | back to summary |
|---|---|
| private long _monitorStart | |
| _nextSet | back to summary |
|---|---|
| private transient int _nextSet | |
| _paused | back to summary |
|---|---|
| private int _paused | |
| _pausing | back to summary |
|---|---|
| private boolean _pausing | |
| _retryTimeout | back to summary |
|---|---|
| private transient Timeout _retryTimeout | |
| _selecting | back to summary |
|---|---|
| private volatile boolean _selecting | |
| _selector | back to summary |
|---|---|
| private transient Selector _selector | |
| _selects | back to summary |
|---|---|
| private int _selects | |
| _setID | back to summary |
|---|---|
| private transient int _setID | |
| SelectSet | back to summary |
|---|---|
| pack-priv SelectSet(int acceptorID) throws Exception | |
| addChange | back to summary |
|---|---|
| public void addChange(Object point) | |
| addChange | back to summary |
|---|---|
| public void addChange(SelectableChannel channel, Object att) | |
| cancelIdle | back to summary |
|---|---|
| public void cancelIdle(Timeout. | |
| doSelect | back to summary |
|---|---|
| public void doSelect() throws IOException Select and dispatch tasks found from changes and the selector. | |
| getManager | back to summary |
|---|---|
| public SelectorManager getManager() | |
| getNow | back to summary |
|---|---|
| public long getNow() | |
| getSelector | back to summary |
|---|---|
| pack-priv Selector getSelector() | |
| scheduleIdle | back to summary |
|---|---|
| public void scheduleIdle(Timeout. | |
| scheduleTimeout | back to summary |
|---|---|
| public void scheduleTimeout(Timeout. | |
| stop | back to summary |
|---|---|
| pack-priv void stop() throws Exception | |
| wakeup | back to summary |
|---|---|
| public void wakeup() | |