| Modifier and Type | Field and Description |
|---|---|
| public static final VirtualThreadPoller | INSTANCE
Returns the default instance best suited for the current system. |
| 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)Parks the current thread until the given file descriptor is ready, with respect to the given readiness mode. |
| INSTANCE | back to summary |
|---|---|
| public static final VirtualThreadPoller INSTANCE Returns the default instance best suited for the current system. | |
| parkThreadUntilReady | back to summary |
|---|---|
| public void parkThreadUntilReady(FileDescriptor fd, int mode, long now, AFSupplier<Integer> timeout, Closeable closeOnInterrupt) throws IOException Parks the current thread until the given file descriptor is ready, with respect to the given readiness mode.
| |