| 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.
|
Copyright © 2024. All rights reserved.