public static interface ThreadLocalHolder.Lifecycle
Modifier and Type | Method and Description |
---|---|
default void |
dispose()
Dispose the instance and free allocated resources.
|
default boolean |
recycle()
Indicate whether the instance can be recycled and returned to the pool and perform
the necessary recycling tasks.
|
default boolean recycle()
true
if the instance can be returned to the pool, false
if
it must be disposed instead.default void dispose()
Copyright © 2013–2022. All rights reserved.