| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Set | |
| private final Set | |
| private final ByteBuffer | |
| private final ByteBuffer | |
| private AFSelector. | |
| private final AtomicInteger | |
| private final Set | |
| private final MapValueSet | |
| private final AFPipe | |
| private final AFSelector. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized void | |
| private void | |
| protected void | implCloseSelector()
Implements abstract java. Closes this selector. |
| private AFSelector. | |
| public Set | |
| private int | |
| protected SelectionKey | register(AbstractSelectableChannel
The channel to be registered ch, int The initial interest set, which must be valid ops, Object The initial attachment for the resulting key att)Implements abstract java. Registers the given channel with this selector. |
| pack-priv synchronized void | |
| public int | select(long
If positive, block for up to timeout)timeout
milliseconds, more or less, while waiting for a
channel to become ready; if zero, block indefinitely;
must not be negativeImplements abstract java. Selects a set of keys whose corresponding channels are ready for I/O operations. |
| public int | select()
Implements abstract java. Selects a set of keys whose corresponding channels are ready for I/O operations. |
| private int | |
| public Set | selectedKeys()
Implements abstract java. Returns this selector's selected-key set. |
| public int | selectNow()
Implements abstract java. Selects a set of keys whose corresponding channels are ready for I/O operations. |
| private void | |
| private int | |
| public Selector | wakeup()
Implements abstract java. Causes the first selection operation that has not yet returned to return immediately. |
| keysRegistered | back to summary |
|---|---|
| private final Map<AFSelectionKey, Integer> keysRegistered | |
| keysRegisteredKeySet | back to summary |
|---|---|
| private final Set<AFSelectionKey> keysRegisteredKeySet | |
| keysRegisteredPublic | back to summary |
|---|---|
| private final Set<SelectionKey> keysRegisteredPublic | |
| pipeMsgReceiveBuffer | back to summary |
|---|---|
| private final ByteBuffer pipeMsgReceiveBuffer | |
| pipeMsgWakeUp | back to summary |
|---|---|
| private final ByteBuffer pipeMsgWakeUp | |
| pollFd | back to summary |
|---|---|
| private AFSelector. | |
| selectCount | back to summary |
|---|---|
| private final AtomicInteger selectCount | |
| selectedKeysPublic | back to summary |
|---|---|
| private final Set<SelectionKey> selectedKeysPublic | |
| selectedKeysSet | back to summary |
|---|---|
private final MapValueSet<SelectionKey, Integer> selectedKeysSet
| |
| selectorPipe | back to summary |
|---|---|
| private final AFPipe selectorPipe | |
| selectorPipePollFd | back to summary |
|---|---|
| private final AFSelector. | |
| AFSelector | back to summary |
|---|---|
| pack-priv AFSelector(AFSelectorProvider<?> provider) throws IOException | |
| consumeAllBytesAfterPoll | back to summary |
|---|---|
| private synchronized void consumeAllBytesAfterPoll() throws IOException | |
| deregister | back to summary |
|---|---|
| private void deregister(AFSelectionKey key) | |
| implCloseSelector | back to summary |
|---|---|
| protected void implCloseSelector() throws IOException Implements abstract java. Doc from java. Closes this selector. This method is invoked by the An implementation of this method must arrange for any other thread
that is blocked in a selection operation upon this selector to return
immediately as if by invoking the
| |
| initPollFd | back to summary |
|---|---|
private AFSelector.
| |
| keys | back to summary |
|---|---|
| public Set Implements abstract java. Doc from java. Returns this selector's key set. The key set is not directly modifiable. A key is removed only after
it has been cancelled and its channel has been deregistered. Any
attempt to modify the key set will cause an The set is safe for use by multiple concurrent threads.
| |
| receive | back to summary |
|---|---|
private int receive(int maxReceive, int options) throws IOException
| |
| register | back to summary |
|---|---|
| protected SelectionKey register(AbstractSelectableChannel ch, int ops, Object att) Implements abstract java. Doc from java. Registers the given channel with this selector. This method is invoked by a channel's
| |
| remove | back to summary |
|---|---|
| pack-priv synchronized void remove(AFSelectionKey key) | |
| select | back to summary |
|---|---|
| public int select(long timeout) throws IOException Implements abstract java. Doc from java. Selects a set of keys whose corresponding channels are ready for I/O operations. This method performs a blocking selection
operation. It returns only after at least one channel is selected,
this selector's This method does not offer real-time guarantees: It schedules the
timeout as if by invoking the
| |
| select | back to summary |
|---|---|
| public int select() throws IOException Implements abstract java. Doc from java. Selects a set of keys whose corresponding channels are ready for I/O operations. This method performs a blocking selection
operation. It returns only after at least one channel is selected,
this selector's
| |
| select0 | back to summary |
|---|---|
private int select0(int timeout) throws IOException
| |
| selectedKeys | back to summary |
|---|---|
| public Set Implements abstract java. Doc from java. Returns this selector's selected-key set. Keys may be removed from, but not directly added to, the
selected-key set. Any attempt to add an object to the key set will
cause an The selected-key set is not thread-safe.
| |
| selectNow | back to summary |
|---|---|
| public int selectNow() throws IOException Implements abstract java. Doc from java. Selects a set of keys whose corresponding channels are ready for I/O operations. This method performs a non-blocking selection operation. If no channels have become selectable since the previous selection operation then this method immediately returns zero. Invoking this method clears the effect of any previous invocations
of the
| |
| setOpsReady | back to summary |
|---|---|
| private void setOpsReady(AFSelector. | |
| updateSelectCount | back to summary |
|---|---|
| private int updateSelectCount() | |
| wakeup | back to summary |
|---|---|
| public Selector wakeup() Implements abstract java. Doc from java. Causes the first selection operation that has not yet returned to return immediately. If another thread is currently blocked in a selection operation then
that invocation will return immediately. If no selection operation is
currently in progress then the next invocation of a selection operation
will return immediately unless Invoking this method more than once between two successive selection operations has the same effect as invoking it just once. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final FileDescriptor[] | |
| pack-priv final AFSelectionKey[] | |
| pack-priv final int[] | |
| pack-priv final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv |
| fds | back to summary |
|---|---|
| pack-priv final FileDescriptor[] fds | |
| keys | back to summary |
|---|---|
| pack-priv final AFSelectionKey[] keys | |
| ops | back to summary |
|---|---|
| pack-priv final int[] ops | |
| rops | back to summary |
|---|---|
| pack-priv final int[] rops | |
| PollFd | back to summary |
|---|---|
| pack-priv PollFd(FileDescriptor pipeSourceFd) | |
| PollFd | back to summary |
|---|---|
| pack-priv PollFd(FileDescriptor pipeSourceFd, int op) | |
| PollFd | back to summary |
|---|---|
| pack-priv PollFd(FileDescriptor[] fds, int[] ops) | |
| PollFd | back to summary |
|---|---|
pack-priv PollFd(AFSelectionKey[] keys, FileDescriptor[] fds, int[] ops)
| |