T
- - type of resource, it must implement AutoCloseable
public 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 © 2023 The Apache Software Foundation. All rights reserved.