T - - type of resource, it must implement AutoCloseablepublic class CloseableThreadLocal<T extends AutoCloseable> extends Object
ThreadLocal.
Plus it provides a close function to clean up resources in all threads where the resource was initialized.| Constructor and Description |
|---|
CloseableThreadLocal(Supplier<T> initialValue,
int poolSize) |
Copyright © 2024 The Apache Software Foundation. All rights reserved.