Class Box.Builder

  • Enclosing class:
    Box

    public static class Box.Builder
    extends Object
    The configuration used to instantiate Box. Primarily it holds the source definitions. It can also build the configuration from a JsonNode.
    Author:
    Charles Draper
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • source

        public Box.Builder source​(SourceConfig sourceConfig)
        Adds the given source to this configuration.
        Parameters:
        sourceConfig - the SourceConfig to add
        Returns:
        this
      • threadFactory

        public Box.Builder threadFactory​(ThreadFactory threadFactory)
        Sets the thread factory to use for any multithreaded harvesting/processing inside of Box.
        Parameters:
        threadFactory - the thread factory to use
        Returns:
        this
      • config

        public Box.Builder config​(com.fasterxml.jackson.databind.JsonNode config)
        Sets all parameters held in the JsonNode.
        Parameters:
        config - the config to add
        Returns:
        this
      • build

        public Box build()
        Builds the new Box instance.
        Returns:
        the new Box