| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | VirtualThreadSchedulerImpls.
Base implementation of VirtualThreadSchedulerMXBean. |
| private static class | VirtualThreadSchedulerImpls.
Implementation of VirtualThreadSchedulerMXBean when virtual threads are backed by platform threads. |
| private static class | VirtualThreadSchedulerImpls.
Implementation of VirtualThreadSchedulerMXBean when virtual threads are implemented with continuations + scheduler. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static VirtualThreadSchedulerMXBean |
| VirtualThreadSchedulerImpls | back to summary |
|---|---|
| private VirtualThreadSchedulerImpls() | |
| create | back to summary |
|---|---|
| public static VirtualThreadSchedulerMXBean create() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public final ObjectName | getObjectName()
Implements java. Returns an |
| public String |
| BaseVirtualThreadSchedulerImpl | back to summary |
|---|---|
| private BaseVirtualThreadSchedulerImpl() | |
| append | back to summary |
|---|---|
| private void append(StringBuilder sb, String name, long value) | |
| getObjectName | back to summary |
|---|---|
| public final ObjectName getObjectName() Implements java. Doc from java. Returns an
| |
| 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-
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getMountedVirtualThreadCount()
Implements jdk. Returns an estimate of the number of virtual threads that are currently
mounted by the scheduler; |
| public int | getParallelism()
Implements jdk. Returns the scheduler's target parallelism. |
| public int | getPoolSize()
Implements jdk. Returns the current number of platform threads that the scheduler has started
but have not terminated; |
| public long | getQueuedVirtualThreadCount()
Implements jdk. Returns an estimate of the number of virtual threads that are queued to
the scheduler to start or continue execution; |
| public void | setParallelism(int size)
Implements jdk. Sets the scheduler's target parallelism. |
| BoundVirtualThreadSchedulerImpl | back to summary |
|---|---|
| private BoundVirtualThreadSchedulerImpl() | |
| getMountedVirtualThreadCount | back to summary |
|---|---|
| public int getMountedVirtualThreadCount() Implements jdk. Doc from jdk. Returns an estimate of the number of virtual threads that are currently
mounted by the scheduler; The number of mounted virtual threads is equal to the number of platform threads carrying virtual threads.
| |
| getParallelism | back to summary |
|---|---|
| public int getParallelism() Implements jdk. Doc from jdk. Returns the scheduler's target parallelism.
| |
| getPoolSize | back to summary |
|---|---|
| public int getPoolSize() Implements jdk. Doc from jdk. Returns the current number of platform threads that the scheduler has started
but have not terminated; The count includes the platform threads that are currently carrying virtual threads and the platform threads that are not currently carrying virtual threads. The thread count may be greater than the scheduler's target parallelism.
| |
| getQueuedVirtualThreadCount | back to summary |
|---|---|
| public long getQueuedVirtualThreadCount() Implements jdk. Doc from jdk. Returns an estimate of the number of virtual threads that are queued to
the scheduler to start or continue execution;
| |
| setParallelism | back to summary |
|---|---|
| public void setParallelism(int size) Implements jdk. Doc from jdk. Sets the scheduler's target parallelism. Increasing the target parallelism allows the scheduler to use more platform threads to carry virtual threads if required. Decreasing the target parallelism reduces the number of threads that the scheduler may use to carry virtual threads.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class | VirtualThreadSchedulerImpls.
Holder class for scheduler. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getMountedVirtualThreadCount()
Implements jdk. Returns an estimate of the number of virtual threads that are currently
mounted by the scheduler; |
| public int | getParallelism()
Implements jdk. Returns the scheduler's target parallelism. |
| public int | getPoolSize()
Implements jdk. Returns the current number of platform threads that the scheduler has started
but have not terminated; |
| public long | getQueuedVirtualThreadCount()
Implements jdk. Returns an estimate of the number of virtual threads that are queued to
the scheduler to start or continue execution; |
| public void | setParallelism(int size)
Implements jdk. Sets the scheduler's target parallelism. |
| VirtualThreadSchedulerImpl | back to summary |
|---|---|
| private VirtualThreadSchedulerImpl() | |
| getMountedVirtualThreadCount | back to summary |
|---|---|
| public int getMountedVirtualThreadCount() Implements jdk. Doc from jdk. Returns an estimate of the number of virtual threads that are currently
mounted by the scheduler; The number of mounted virtual threads is equal to the number of platform threads carrying virtual threads.
| |
| getParallelism | back to summary |
|---|---|
| public int getParallelism() Implements jdk. Doc from jdk. Returns the scheduler's target parallelism.
| |
| getPoolSize | back to summary |
|---|---|
| public int getPoolSize() Implements jdk. Doc from jdk. Returns the current number of platform threads that the scheduler has started
but have not terminated; The count includes the platform threads that are currently carrying virtual threads and the platform threads that are not currently carrying virtual threads. The thread count may be greater than the scheduler's target parallelism.
| |
| getQueuedVirtualThreadCount | back to summary |
|---|---|
| public long getQueuedVirtualThreadCount() Implements jdk. Doc from jdk. Returns an estimate of the number of virtual threads that are queued to
the scheduler to start or continue execution;
| |
| setParallelism | back to summary |
|---|---|
| public void setParallelism(int size) Implements jdk. Doc from jdk. Sets the scheduler's target parallelism. Increasing the target parallelism allows the scheduler to use more platform threads to carry virtual threads if required. Decreasing the target parallelism reduces the number of threads that the scheduler may use to carry virtual threads.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Executor |
| scheduler | back to summary |
|---|---|
| private static final Executor scheduler | |
| Scheduler | back to summary |
|---|---|
| private Scheduler() | |
| instance | back to summary |
|---|---|
| pack-priv static Executor instance() | |