Package cloud.commandframework.services
Class ServicePipelineBuilder
- java.lang.Object
-
- cloud.commandframework.services.ServicePipelineBuilder
-
public final class ServicePipelineBuilder extends java.lang.Object
Builder forServicePipeline
-
-
Method Summary
Modifier and Type Method Description @NonNull ServicePipeline
build()
Construct a newServicePipeline
using the options specified in the builder@NonNull ServicePipelineBuilder
withExecutor(@NonNull java.util.concurrent.Executor executor)
Set the executor that will be used by the pipeline when evaluating results asynchronously.
-
-
-
Method Detail
-
build
public @NonNull ServicePipeline build()
Construct a newServicePipeline
using the options specified in the builder- Returns:
- New service pipeline
-
withExecutor
public @NonNull ServicePipelineBuilder withExecutor(@NonNull java.util.concurrent.Executor executor)
Set the executor that will be used by the pipeline when evaluating results asynchronously. Unless specified, the pipeline will use a single threaded executor.- Parameters:
executor
- New executor- Returns:
- Builder instance
-
-