Index
All Classes and Interfaces|All Packages
G
- getCurrentJVMClassVersion() - Static method in class one.tranic.t.thread.Sys
- getCurrentJVMVersion() - Static method in class one.tranic.t.thread.Sys
-
Retrieves the current JVM version as an integer.
- getExecutor() - Static method in class one.tranic.t.thread.T2hread
-
Provides an
ExecutorServicewith specific configuration by default. - getExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>) - Static method in class one.tranic.t.thread.T2hread
-
Creates and returns an
ExecutorServiceinstance. - getPureExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>) - Static method in class one.tranic.t.thread.T2hread
-
Creates and returns an
ExecutorServiceusing the specified parameters.
H
- hasClass(String) - Static method in class one.tranic.t.thread.Sys
-
Checks whether a class with the specified fully qualified name exists in the classpath.
N
- newThread(Runnable) - Static method in class one.tranic.t.thread.T2hread
-
Creates a new thread to execute the provided
Runnabletask. - newThread(Runnable, String) - Static method in class one.tranic.t.thread.T2hread
-
Creates a new thread using the provided
Runnableand assigns it the specified name. - newThread(Runnable, String, boolean) - Static method in class one.tranic.t.thread.T2hread
-
Creates a new thread with the given runnable, name, and daemon status.
- newThread(Runnable, String, boolean, Thread.UncaughtExceptionHandler) - Static method in class one.tranic.t.thread.T2hread
-
Creates a new thread with the specified configuration.
- newVirtualThreadFactoryOrDefault() - Static method in class one.tranic.t.thread.T2hread
-
Creates a new virtual thread factory if supported by the current JVM; otherwise, falls back to the default thread factory implementation.
- newVirtualThreadPerTaskExecutor() - Static method in class one.tranic.t.thread.T2hread
-
Creates a new
ExecutorServicethat assigns a virtual thread to each submitted task. - newVirtualThreadPerTaskExecutorOrProvided(ExecutorService) - Static method in class one.tranic.t.thread.T2hread
-
Creates a new virtual thread-per-task executor if supported by the runtime environment, otherwise returns the provided fallback executor.
O
- one.tranic.t.thread - package one.tranic.t.thread
S
- Sys - Class in one.tranic.t.thread
- Sys() - Constructor for class one.tranic.t.thread.Sys
T
- T2hread - Class in one.tranic.t.thread
-
Provides utility methods for working with threads, including creating virtual threads, thread factories, and executors.
- T2hread() - Constructor for class one.tranic.t.thread.T2hread
All Classes and Interfaces|All Packages