public class AsyncContextHolder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static AsyncAttributes |
getAsyncAttributes()
Return the AsyncAttributes currently bound to the thread.
|
static void |
resetAsyncAttributes()
Reset the AsyncAttributes for the current thread.
|
static void |
setAsyncAttributes(AsyncAttributes asyncAttributes)
Bind the given AsyncAttributes to the current thread.
|
public static void resetAsyncAttributes()
public static void setAsyncAttributes(AsyncAttributes asyncAttributes)
asyncAttributes - the AsyncAttributes to expose,
or null to reset the thread-bound contextpublic static AsyncAttributes getAsyncAttributes()
null if none boundCopyright © 2022 hellothomas. All rights reserved.