Index
All Classes and Interfaces|All Packages
B
- build() - Method in interface com.palantir.nylon.threads.NylonExecutor.BuildStage
- builder() - Static method in class com.palantir.nylon.threads.NylonExecutor
C
- com.palantir.nylon.threads - package com.palantir.nylon.threads
E
- executor(Executor) - Method in interface com.palantir.nylon.threads.NylonExecutor.ExecutorStage
-
Sets the delegate
Executoron which tasks are executed.
F
- factory() - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
G
- get() - Static method in class com.palantir.nylon.threads.VirtualThreads
I
- inheritInheritableThreadLocals(boolean) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
- isVirtual(Thread) - Static method in class com.palantir.nylon.threads.VirtualThreads
- isVirtual(Thread) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport
-
Returns
trueifthreadis virtual,falseotherwise.
M
- maxThreads(int) - Method in interface com.palantir.nylon.threads.NylonExecutor.MaxThreadsStage
-
Configures the maximum threads allowed for concurrent execution through this executor facade.
N
- name(String) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
-
Sets the threads name.
- name(String, long) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
-
Sets the threads name prefix, and the starting value of a counter which is appended to the prefix and incremented for subsequent threads.
- name(String) - Method in interface com.palantir.nylon.threads.NylonExecutor.NameStage
-
Configure the executor name.
- newThreadPerTaskExecutor(ThreadFactory) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport
-
Equivalent to
Executors.newThreadPerTaskExecutor(threadFactory)on jdk-21+. - NylonExecutor - Class in com.palantir.nylon.threads
-
Factory utility to create an executor facade to share access to a single delegate executor.
- NylonExecutor.BuildStage - Interface in com.palantir.nylon.threads
- NylonExecutor.ExecutorStage - Interface in com.palantir.nylon.threads
- NylonExecutor.MaxThreadsStage - Interface in com.palantir.nylon.threads
- NylonExecutor.NameStage - Interface in com.palantir.nylon.threads
- NylonExecutor.QueueSizeStage - Interface in com.palantir.nylon.threads
O
- ofVirtual() - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport
-
Alias to the jdk-21
Thread.ofVirtual()API.
Q
- queueSize(int) - Method in interface com.palantir.nylon.threads.NylonExecutor.QueueSizeStage
-
Configures the maximum queue size for this executor facade.
S
- setThreadName(Thread, String) - Static method in class com.palantir.nylon.threads.ThreadNames
-
Sets the name of a java thread without native overhead to rename the OS thread.
- start(Runnable) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
T
- ThreadNames - Class in com.palantir.nylon.threads
-
Utility functionality to rename
threadsas efficiently as possible.
U
- uncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in interface com.palantir.nylon.threads.NylonExecutor.BuildStage
-
Provide an
Thread.UncaughtExceptionHandler, otherwise adefault logging implementationwill be used. - uncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
- unstarted(Runnable) - Method in interface com.palantir.nylon.threads.VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder
V
- VirtualThreads - Class in com.palantir.nylon.threads
-
Utility functionality to allow libraries which compile for earlier JDKs to take advantage of virtual threads features on sufficiently new runtimes.
- VirtualThreads.VirtualThreadSupport - Interface in com.palantir.nylon.threads
- VirtualThreads.VirtualThreadSupport.VirtualThreadBuilder - Interface in com.palantir.nylon.threads
-
This type is equivalent to the Thread.Builder.OfVirtual returned by
Thread.ofVirtual()in JDK-21+.
All Classes and Interfaces|All Packages