Package io.smallrye.context
Class SmallRyeManagedExecutor.Builder
java.lang.Object
io.smallrye.context.SmallRyeManagedExecutor.Builder
- All Implemented Interfaces:
org.eclipse.microprofile.context.ManagedExecutor.Builder
- Enclosing class:
- SmallRyeManagedExecutor
public static class SmallRyeManagedExecutor.Builder
extends Object
implements org.eclipse.microprofile.context.ManagedExecutor.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()injectionPointName(String name) maxAsync(int max) maxQueued(int max) propagated(String... types) withExecutorService(ExecutorService executorService) Delegate execution to the given executor service instead of the default set bySmallRyeContextManager.Builder.withDefaultExecutorService(ExecutorService).Forces the creation of a new executor service.
-
Constructor Details
-
Builder
-
-
Method Details
-
build
- Specified by:
buildin interfaceorg.eclipse.microprofile.context.ManagedExecutor.Builder
-
propagated
- Specified by:
propagatedin interfaceorg.eclipse.microprofile.context.ManagedExecutor.Builder
-
maxAsync
- Specified by:
maxAsyncin interfaceorg.eclipse.microprofile.context.ManagedExecutor.Builder
-
maxQueued
- Specified by:
maxQueuedin interfaceorg.eclipse.microprofile.context.ManagedExecutor.Builder
-
cleared
- Specified by:
clearedin interfaceorg.eclipse.microprofile.context.ManagedExecutor.Builder
-
injectionPointName
-
withExecutorService
Delegate execution to the given executor service instead of the default set bySmallRyeContextManager.Builder.withDefaultExecutorService(ExecutorService). Set tonullto disable delegation and force creating a new executor service.- Parameters:
executorService- the executor service to delegate to, ornullto force creating a new executor service.- Returns:
- this builder
- See Also:
-
withNewExecutorService
Forces the creation of a new executor service. This is has the same effect as callingwithExecutorService(ExecutorService)withnull.- Returns:
- this builder
- See Also:
-