Class ProcessingSettings.Builder

  • Enclosing class:
    ProcessingSettings

    public static class ProcessingSettings.Builder
    extends java.lang.Object
    A builder for processing settings.
    • Method Detail

      • withThreadCount

        public ProcessingSettings.Builder withThreadCount​(@Nonnull
                                                          java.lang.Integer threadCount)
        Set number of threads for processing tasks in the queue.
        Parameters:
        threadCount - Number of processing threads.
        Returns:
        Reference to the same builder.
      • withProcessingMode

        public ProcessingSettings.Builder withProcessingMode​(@Nonnull
                                                             ProcessingMode processingMode)
        Set task processing mode in the queue.
        Parameters:
        processingMode - Task processing mode.
        Returns:
        Reference to the same builder.