Class ServicePipelineBuilder


  • public final class ServicePipelineBuilder
    extends java.lang.Object
    Builder for ServicePipeline
    • Method Summary

      Modifier and Type Method Description
      @NonNull ServicePipeline build()
      Construct a new ServicePipeline 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • build

        public @NonNull ServicePipeline build()
        Construct a new ServicePipeline 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