| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| 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 | |
| protected abstract Connection | |
| protected abstract SelectChannelEndPoint | |
| 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 |
| _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) | |
| 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() | |
| 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 | |
| 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 |
|---|---|
| private transient int | |
| private transient List | |
| private transient Timeout | |
| private transient int | |
| private transient int | |
| private transient boolean | |
| private transient Selector | |
| private transient int | |
| private transient Timeout |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public SelectorManager | |
| public long | |
| pack-priv Selector | |
| public void | |
| public void | |
| pack-priv void | |
| public void |
| _change | back to summary |
|---|---|
| private transient int _change | |
| _changes | back to summary |
|---|---|
| private transient List<Object>[] _changes | |
| _idleTimeout | back to summary |
|---|---|
| private transient Timeout _idleTimeout | |
| _jvmBug | back to summary |
|---|---|
| private transient int _jvmBug | |
| _nextSet | back to summary |
|---|---|
| private transient int _nextSet | |
| _selecting | back to summary |
|---|---|
| private transient boolean _selecting | |
| _selector | back to summary |
|---|---|
| private transient Selector _selector | |
| _setID | back to summary |
|---|---|
| private transient int _setID | |
| _timeout | back to summary |
|---|---|
| private transient Timeout _timeout | |
| 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(SocketChannel channel, Object att) | |
| cancelIdle | back to summary |
|---|---|
| public void cancelIdle(Timeout. | |
| cancelTimeout | back to summary |
|---|---|
| public void cancelTimeout(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() | |