Package cloud.commandframework.services
Class ServicePipelineBuilder
java.lang.Object
cloud.commandframework.services.ServicePipelineBuilder
Builder for
ServicePipeline-
Method Summary
Modifier and TypeMethodDescription@NonNull ServicePipelinebuild()Construct a newServicePipelineusing the options specified in the builder@NonNull ServicePipelineBuilderwithExecutor(@NonNull Executor executor) Set the executor that will be used by the pipeline when evaluating results asynchronously.
-
Method Details
-
build
Construct a newServicePipelineusing the options specified in the builder- Returns:
- New service pipeline
-
withExecutor
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
-