| Package | Description |
|---|---|
| net.openhft.chronicle.core.threads |
| 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 action but
without an initial-value supplier. |
static <T> CleaningThreadLocal<T> |
CleaningThreadLocal.withCloseQuietly(Supplier<T> supplier)
Creates a
CleaningThreadLocal whose cleanup simply calls
Closeable.closeQuietly(java.lang.Object...). |
| 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 © 2026 Chronicle Software Ltd. All rights reserved.