public class ThreadLocalAttention extends Attention
Using ThreadLocal internally, there are leak pitfalls, you must use one of the following modes. (1) static, the only Ref in JVM, to avoid creating temporary Ref multiple times. (2) use try-finally-close mode to remove the Ref.
| Constructor and Description |
|---|
ThreadLocalAttention() |
ThreadLocalAttention(Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ThreadLocalAttention()
public ThreadLocalAttention(Throwable cause)
Copyright © 2024. All rights reserved.