| Package | Description |
|---|---|
| net.openhft.chronicle.core.threads |
Provides classes and interfaces for thread management and scheduling in an
event-driven programming model.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> CleaningThreadLocal<T> |
CleaningThreadLocal.withCleanup(Supplier<T> supplier,
ThrowingConsumer<T,Exception> cleanup)
Creates a CleaningThreadLocal with a supplier and a custom cleanup strategy.
|
static <T> CleaningThreadLocal<T> |
CleaningThreadLocal.withCleanup(Supplier<T> supplier,
ThrowingConsumer<T,Exception> cleanup,
Function<T,T> getWrapper)
Creates a CleaningThreadLocal with a supplier, a custom cleanup strategy, and a function to apply when the get method is called.
|
static <T> CleaningThreadLocal<T> |
CleaningThreadLocal.withCleanup(ThrowingConsumer<T,Exception> cleanup)
Creates a CleaningThreadLocal with a custom cleanup strategy.
|
static <T> CleaningThreadLocal<T> |
CleaningThreadLocal.withCloseQuietly(Supplier<T> supplier)
Creates a CleaningThreadLocal with a Closeable cleanup strategy.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CleaningThread.performCleanup(Thread thread,
CleaningThreadLocal<?> ctl)
Cleans up a specific
CleaningThreadLocal instance associated with the given thread. |
Copyright © 2024. All rights reserved.