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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetValue()key()voidsetValue()voidsetValue(RequestAttributes value) Methods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.context.ThreadLocalAccessorreset, restore, restore
- 
Field Details- 
KEYKey under which this accessor is registered inContextRegistry.
 
- 
- 
Constructor Details- 
RequestAttributesThreadLocalAccessorpublic RequestAttributesThreadLocalAccessor()
 
- 
- 
Method Details- 
key- Specified by:
- keyin interface- io.micrometer.context.ThreadLocalAccessor<RequestAttributes>
 
- 
getValue- Specified by:
- getValuein interface- io.micrometer.context.ThreadLocalAccessor<RequestAttributes>
 
- 
setValue- Specified by:
- setValuein interface- io.micrometer.context.ThreadLocalAccessor<RequestAttributes>
 
- 
setValuepublic void setValue()- Specified by:
- setValuein interface- io.micrometer.context.ThreadLocalAccessor<RequestAttributes>
 
 
-