Package edu.byu.hbll.box
Class Box.Builder
- java.lang.Object
-
- edu.byu.hbll.box.Box.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Box
build()
Builds the new Box instance.Box.Builder
config(com.fasterxml.jackson.databind.JsonNode config)
Sets all parameters held in theJsonNode
.Box.Builder
source(SourceConfig sourceConfig)
Adds the given source to this configuration.Box.Builder
threadFactory(ThreadFactory threadFactory)
Sets the thread factory to use for any multithreaded harvesting/processing inside of Box.
-
-
-
Method Detail
-
source
public Box.Builder source(SourceConfig sourceConfig)
Adds the given source to this configuration.- Parameters:
sourceConfig
- theSourceConfig
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 theJsonNode
.- Parameters:
config
- the config to add- Returns:
- this
-
build
public Box build()
Builds the new Box instance.- Returns:
- the new Box
-
-