Package io.smallrye.context
Class SmallRyeContextManager
- java.lang.Object
-
- io.smallrye.context.SmallRyeContextManager
-
- All Implemented Interfaces:
org.eclipse.microprofile.context.spi.ContextManager
public class SmallRyeContextManager extends Object implements org.eclipse.microprofile.context.spi.ContextManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmallRyeContextManager.Builder
-
Method Summary
Modifier and Type Method Description SmallRyeThreadContextallClearedThreadContext()Returns aSmallRyeThreadContextinstance which clears all thread contexts.SmallRyeThreadContextallPropagatedThreadContext()Returns aSmallRyeThreadContextinstance which propagates all thread contexts.SmallRyeThreadContextdefaultThreadContext()Returns aSmallRyeThreadContextinstance which propagates default contexts, possibly configured via MP Config.String[]getAllProviderTypes()ExecutorServicegetDefaultExecutorService()DefaultValuesgetDefaultValues()List<org.eclipse.microprofile.context.spi.ContextManagerExtension>getExtensions()ThreadContextProviderPlangetProviderPlan()ThreadContextProviderPlangetProviderPlan(String[] propagated, String[] unchanged, String[] cleared)SmallRyeManagedExecutor.BuildernewManagedExecutorBuilder()SmallRyeThreadContext.BuildernewThreadContextBuilder()
-
-
-
Field Detail
-
NONE
public static final String NONE
- See Also:
- Constant Field Values
-
NO_STRING
public static final String[] NO_STRING
-
ALL_REMAINING_ARRAY
public static final String[] ALL_REMAINING_ARRAY
-
-
Method Detail
-
getAllProviderTypes
public String[] getAllProviderTypes()
-
getProviderPlan
public ThreadContextProviderPlan getProviderPlan()
-
getProviderPlan
public ThreadContextProviderPlan getProviderPlan(String[] propagated, String[] unchanged, String[] cleared)
-
newManagedExecutorBuilder
public SmallRyeManagedExecutor.Builder newManagedExecutorBuilder()
- Specified by:
newManagedExecutorBuilderin interfaceorg.eclipse.microprofile.context.spi.ContextManager
-
newThreadContextBuilder
public SmallRyeThreadContext.Builder newThreadContextBuilder()
- Specified by:
newThreadContextBuilderin interfaceorg.eclipse.microprofile.context.spi.ContextManager
-
getDefaultExecutorService
public ExecutorService getDefaultExecutorService()
-
getExtensions
public List<org.eclipse.microprofile.context.spi.ContextManagerExtension> getExtensions()
-
getDefaultValues
public DefaultValues getDefaultValues()
-
defaultThreadContext
public SmallRyeThreadContext defaultThreadContext()
Returns aSmallRyeThreadContextinstance which propagates default contexts, possibly configured via MP Config.- Returns:
- a
SmallRyeThreadContextinstance which propagates default contexts, possibly configured via MP Config
-
allPropagatedThreadContext
public SmallRyeThreadContext allPropagatedThreadContext()
Returns aSmallRyeThreadContextinstance which propagates all thread contexts.- Returns:
- a
SmallRyeThreadContextinstance which propagates all thread contexts.
-
allClearedThreadContext
public SmallRyeThreadContext allClearedThreadContext()
Returns aSmallRyeThreadContextinstance which clears all thread contexts.- Returns:
- a
SmallRyeThreadContextinstance which clears all thread contexts.
-
-