Package io.apicurio.registry.mt
Class TenantThreadContextProvider
- java.lang.Object
-
- io.apicurio.registry.mt.TenantThreadContextProvider
-
- All Implemented Interfaces:
org.eclipse.microprofile.context.spi.ThreadContextProvider
public class TenantThreadContextProvider extends Object implements org.eclipse.microprofile.context.spi.ThreadContextProvider
Implementation required for context propagation. This is responsible for moving our tenant context from one thread to another when context-propagation is being used.- Author:
- Fabian Martinez
-
-
Constructor Summary
Constructors Constructor Description TenantThreadContextProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.microprofile.context.spi.ThreadContextSnapshotclearedContext(Map<String,String> props)org.eclipse.microprofile.context.spi.ThreadContextSnapshotcurrentContext(Map<String,String> props)StringgetThreadContextType()
-
-
-
Method Detail
-
currentContext
public org.eclipse.microprofile.context.spi.ThreadContextSnapshot currentContext(Map<String,String> props)
- Specified by:
currentContextin interfaceorg.eclipse.microprofile.context.spi.ThreadContextProvider
-
clearedContext
public org.eclipse.microprofile.context.spi.ThreadContextSnapshot clearedContext(Map<String,String> props)
- Specified by:
clearedContextin interfaceorg.eclipse.microprofile.context.spi.ThreadContextProvider
-
getThreadContextType
public String getThreadContextType()
- Specified by:
getThreadContextTypein interfaceorg.eclipse.microprofile.context.spi.ThreadContextProvider
-
-