VirtualThreadPoller, using
NativeUnixSocket#poll(PollFd, int) on non-virtual threads.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final InterruptedIOException | |
| private static final int | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | parkThreadUntilReady(FileDescriptor
The file descriptor to check. fd, int The mode (bitmask of mode, long SelectionKey#OP_READ, SelectionKey#OP_WRITE,
SelectionKey#OP_ACCEPT, SelectionKey#OP_CONNECT)The refence time (in millis) for the timeout now, AFSupplier<Integer> (in seconds), or 0 for infinite timeout, Closeable Callback to call upon interrupt (usually to close the resource working
on the file descriptor) closeOnInterrupt)Implements org. Parks the current thread until the given file descriptor is ready, with respect to the given readiness mode. |
| POLL_INTERRUPTED_SENTINEL | back to summary |
|---|---|
| private static final InterruptedIOException POLL_INTERRUPTED_SENTINEL | |
| POLL_INTERVAL_MILLIS | back to summary |
|---|---|
| private static final int POLL_INTERVAL_MILLIS | |
| POLL_JOBS | back to summary |
|---|---|
| private static final Map<FileDescriptor, VirtualThreadPollerNaive. | |
| VirtualThreadPollerNaive | back to summary |
|---|---|
| pack-priv VirtualThreadPollerNaive() | |
| parkThreadUntilReady | back to summary |
|---|---|
| public void parkThreadUntilReady(FileDescriptor fd, int mode, long now, AFSupplier<Integer> timeout, Closeable closeOnInterrupt) throws IOException Implements org. Doc from org. Parks the current thread until the given file descriptor is ready, with respect to the given readiness mode.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final FileDescriptor | |
| private final int | |
| private final long | |
| private final AFSupplier | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv AFFuture |
| fd | back to summary |
|---|---|
| private final FileDescriptor fd | |
| mode | back to summary |
|---|---|
| private final int mode | |
| now | back to summary |
|---|---|
| private final long now | |
| timeout | back to summary |
|---|---|
| private final AFSupplier<Integer> timeout | |
| waitingThreads | back to summary |
|---|---|
| private final List<Thread> waitingThreads | |
| PollJob | back to summary |
|---|---|
| pack-priv PollJob(FileDescriptor fd, int mode, long now, AFSupplier<Integer> timeout) | |
| trigger | back to summary |
|---|---|
pack-priv AFFuture
| |