Package io.smallrye.context
Interface FastThreadContextProvider
-
- All Superinterfaces:
org.eclipse.microprofile.context.spi.ThreadContextProvider
- All Known Subinterfaces:
FastStorageThreadContextProvider<Declaration>
public interface FastThreadContextProvider extends org.eclipse.microprofile.context.spi.ThreadContextProviderSubtype of ThreadContextProvider which bypasses all theThreadContextProvider.currentContext(Map)andThreadContextProvider.clearedContext(Map)andThreadContextSnapshotand just works on the ThreadLocal and cleared value we designate.
-
-
Method Summary
Modifier and Type Method Description default ObjectclearedValue(Map<String,String> props)The cleared value.ThreadLocal<?>threadLocal(Map<String,String> props)Designates the ThreadLocal that we should capture/restore.
-
-
-
Method Detail
-
threadLocal
ThreadLocal<?> threadLocal(Map<String,String> props)
Designates the ThreadLocal that we should capture/restore. Must always be the same returned ThreadLocal.- Parameters:
props- properties- Returns:
- the ThreadLocal to capture/restore
-
-