Class 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 Detail

      • TenantThreadContextProvider

        public TenantThreadContextProvider()
    • Method Detail

      • currentContext

        public org.eclipse.microprofile.context.spi.ThreadContextSnapshot currentContext​(Map<String,​String> props)
        Specified by:
        currentContext in interface org.eclipse.microprofile.context.spi.ThreadContextProvider
      • clearedContext

        public org.eclipse.microprofile.context.spi.ThreadContextSnapshot clearedContext​(Map<String,​String> props)
        Specified by:
        clearedContext in interface org.eclipse.microprofile.context.spi.ThreadContextProvider
      • getThreadContextType

        public String getThreadContextType()
        Specified by:
        getThreadContextType in interface org.eclipse.microprofile.context.spi.ThreadContextProvider