public abstract class TransportContextHolder extends Object
TransportContext instance with the current thread. The
TransportContext will be inherited by any child threads spawned by the current thread.TransportContext| Constructor and Description |
|---|
TransportContextHolder() |
| Modifier and Type | Method and Description |
|---|---|
static TransportContext |
getTransportContext()
Return the
TransportContext associated with the current thread, if any. |
static void |
setTransportContext(TransportContext transportContext)
Associate the given
TransportContext with the current thread. |
public static void setTransportContext(TransportContext transportContext)
TransportContext with the current thread.transportContext - the current transport context, or null to reset the thread-bound contextpublic static TransportContext getTransportContext()
TransportContext associated with the current thread, if any.null if none