| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | QuicSelector.
A |
| private static record | |
| pack-priv static class | QuicSelector.
A |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Logger | |
| private volatile boolean | |
| public static final long | IDLE_PERIOD_MS
The maximum timeout passed to Selector::select. |
| private final QuicInstance | |
| private static final ScopedValue | |
| private final String | |
| private static final TimeLine | |
| private final QuicSelector. | |
| private final QuicTimerQueue |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | awaitTermination(long
the maximum time to wait for termination timeout, TimeUnit the timeout unit unit)Awaits termination of the selector thread, up until the given timeout has elapsed. |
| public void | |
| public long | |
| public static QuicSelector | Returns: a new instance ofQuicNioSelectorthe quic instance quicInstance, String the selector name name)Returns a new instance of |
| public static QuicSelector | Returns: a new instance ofQuicVirtualThreadPollerthe quic instance quicInstance, String the selector name name)Returns a new instance of |
| pack-priv boolean | |
| public static boolean | |
| public String | |
| public void | |
| public final void | |
| pack-priv abstract void | |
| public void | |
| public void | |
| public QuicTimerQueue | |
| public String | |
| public void |
| debug | back to summary |
|---|---|
| pack-priv final Logger debug | |
| done | back to summary |
|---|---|
| private volatile boolean done | |
| IDLE_PERIOD_MS | back to summary |
|---|---|
| public static final long IDLE_PERIOD_MS The maximum timeout passed to Selector::select. | |
| instance | back to summary |
|---|---|
| private final QuicInstance instance | |
| IS_SELECTOR | back to summary |
|---|---|
| private static final ScopedValue<Boolean> IS_SELECTOR | |
| name | back to summary |
|---|---|
| private final String name | |
| source | back to summary |
|---|---|
| private static final TimeLine source | |
| thread | back to summary |
|---|---|
| private final QuicSelector. | |
| timerQueue | back to summary |
|---|---|
| private final QuicTimerQueue timerQueue | |
| QuicSelector | back to summary |
|---|---|
| private QuicSelector(QuicInstance instance, String name) | |
| abort | back to summary |
|---|---|
| public void abort(Throwable t) | |
| awaitTermination | back to summary |
|---|---|
| public void awaitTermination(long timeout, TimeUnit unit) Awaits termination of the selector thread, up until the given timeout has elapsed. If the current thread is the selector thread, returns immediately without waiting.
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Closes this
| |
| computeNextDeadLine | back to summary |
|---|---|
| public long computeNextDeadLine() | |
| createQuicNioSelector | back to summary |
|---|---|
| public static QuicSelector Returns a new instance of
A
The returned implementation can only be used with
| |
| createQuicVirtualThreadPoller | back to summary |
|---|---|
| public static QuicSelector Returns a new instance of
The returned implementation can only be used with
| |
| done | back to summary |
|---|---|
| pack-priv boolean done() | |
| isSelectorThread | back to summary |
|---|---|
| public static boolean isSelectorThread() | |
| name | back to summary |
|---|---|
| public String name() | |
| register | back to summary |
|---|---|
| public void register(T endpoint) throws ClosedChannelException | |
| run | back to summary |
|---|---|
| public final void run() Implements java. Doc from java. Runs this operation.
| |
| runSelector | back to summary |
|---|---|
| pack-priv abstract void runSelector() | |
| shutdown | back to summary |
|---|---|
| public void shutdown() Shuts down the
| |
| start | back to summary |
|---|---|
| public void start() | |
| timer | back to summary |
|---|---|
| public QuicTimerQueue timer() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| wakeup | back to summary |
|---|---|
| public void wakeup() | |
QuicSelector implementation based on non-blocking
Datagram Channels and using a
NIO Selector.
This implementation is tied to QuicSelectableEndpoint instances.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Selector |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public void | |
| public void | register(QuicEndpoint.
Overrides jdk.
|
| pack-priv void | |
| public void | shutdown()
Overrides jdk. Shuts down the |
| public void |
| selector | back to summary |
|---|---|
| pack-priv final Selector selector | |
| QuicNioSelector | back to summary |
|---|---|
| private QuicNioSelector(QuicInstance instance, Selector selector, String name) | |
| abort | back to summary |
|---|---|
| pack-priv boolean abort(SelectionKey key, Throwable error) | |
| abort | back to summary |
|---|---|
| public void abort(Throwable error) Overrides jdk.
| |
| register | back to summary |
|---|---|
| public void register(QuicEndpoint. | |
| runSelector | back to summary |
|---|---|
| pack-priv void runSelector() Implements abstract jdk.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Overrides jdk. Shuts down the
| |
| wakeup | back to summary |
|---|---|
| public void wakeup() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Thread |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| pack-priv void | |
| pack-priv static QuicSelector. | |
| pack-priv static QuicSelector. | |
| pack-priv static QuicSelector. | |
| pack-priv void | |
| public Thread | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| thread | back to summary |
|---|---|
| private final Thread thread Record Component accessed by thread(). | |
| QuicSelectorThread | back to summary |
|---|---|
| private QuicSelectorThread(Thread thread) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| join | back to summary |
|---|---|
| pack-priv void join(long millis) throws InterruptedException | |
| of | back to summary |
|---|---|
| pack-priv static QuicSelector. | |
| ofPlatform | back to summary |
|---|---|
| pack-priv static QuicSelector. | |
| ofVirtual | back to summary |
|---|---|
| pack-priv static QuicSelector. | |
| start | back to summary |
|---|---|
| pack-priv void start() | |
| thread | back to summary |
|---|---|
| public Thread thread() Record Component getter of thread. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
QuicSelector implementation based on blocking
Datagram Channels and using a
Virtual Threads to poll the channels.
This implementation is tied to QuicVirtualThreadedEndpoint instances.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentLinkedQueue | |
| private final ReentrantLock | |
| pack-priv static final boolean | |
| private final ExecutorService | |
| private final Object | |
| private volatile long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv ExecutorService | |
| public void | |
| pack-priv void | |
| public void | shutdown()
Overrides jdk. Shuts down the |
| public Future | |
| public void |
| endpoints | back to summary |
|---|---|
| private final ConcurrentLinkedQueue<QuicSelector. | |
| stateLock | back to summary |
|---|---|
| private final ReentrantLock stateLock | |
| usePlatformThreads | back to summary |
|---|---|
| pack-priv static final boolean usePlatformThreads | |
| virtualThreadService | back to summary |
|---|---|
| private final ExecutorService virtualThreadService | |
| waiter | back to summary |
|---|---|
| private final Object waiter | |
| wakeups | back to summary |
|---|---|
| private volatile long wakeups | |
| QuicVirtualThreadPoller | back to summary |
|---|---|
| private QuicVirtualThreadPoller(QuicInstance instance, String name) | |
| abort | back to summary |
|---|---|
| pack-priv boolean abort(QuicSelector. | |
| abort | back to summary |
|---|---|
| public void abort(Throwable t) Overrides jdk.
| |
| close | back to summary |
|---|---|
| pack-priv boolean close(QuicSelector. | |
| markDone | back to summary |
|---|---|
| pack-priv void markDone() | |
| readLoopExecutor | back to summary |
|---|---|
| pack-priv ExecutorService readLoopExecutor() | |
| register | back to summary |
|---|---|
| public void register(QuicEndpoint. Overrides jdk.
| |
| runSelector | back to summary |
|---|---|
| pack-priv void runSelector() Implements abstract jdk.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Overrides jdk. Doc from jdk. Shuts down the
| |
| startReading | back to summary |
|---|---|
| public Future | |
| wakeup | back to summary |
|---|---|
| public void wakeup() Overrides jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final QuicEndpoint. | |
| pack-priv final ConcurrentLinkedQueue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| endpoint | back to summary |
|---|---|
| pack-priv final QuicEndpoint. | |
| endpoints | back to summary |
|---|---|
| pack-priv final ConcurrentLinkedQueue<QuicSelector. | |
| EndpointTask | back to summary |
|---|---|
| pack-priv EndpointTask(QuicEndpoint. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |