Class RequestAttributesThreadLocalAccessor
java.lang.Object
org.springframework.web.context.request.RequestAttributesThreadLocalAccessor
- All Implemented Interfaces:
io.micrometer.context.ThreadLocalAccessor<RequestAttributes>
public class RequestAttributesThreadLocalAccessor
extends Object
implements io.micrometer.context.ThreadLocalAccessor<RequestAttributes>
Adapt
RequestContextHolder
to the ThreadLocalAccessor
contract
to assist the Micrometer Context Propagation library with
RequestAttributes
propagation.- Since:
- 6.2
- Author:
- Tadaya Tsuyukubo, Rossen Stoyanchev
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
key()
void
setValue()
void
setValue
(RequestAttributes value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.context.ThreadLocalAccessor
reset, restore, restore
-
Field Details
-
KEY
Key under which this accessor is registered inContextRegistry
.
-
-
Constructor Details
-
RequestAttributesThreadLocalAccessor
public RequestAttributesThreadLocalAccessor()
-
-
Method Details
-
key
- Specified by:
key
in interfaceio.micrometer.context.ThreadLocalAccessor<RequestAttributes>
-
getValue
- Specified by:
getValue
in interfaceio.micrometer.context.ThreadLocalAccessor<RequestAttributes>
-
setValue
- Specified by:
setValue
in interfaceio.micrometer.context.ThreadLocalAccessor<RequestAttributes>
-
setValue
public void setValue()- Specified by:
setValue
in interfaceio.micrometer.context.ThreadLocalAccessor<RequestAttributes>
-