ThreadManagerBuilder
Utility to build a thread manager that uses the provided lambda to process incoming jobs
Type parameters
- T
-
the type of the job to be processed
Value parameters
- lambda
-
the lambda to process a given job
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
create the configured ThreadManager
create the configured ThreadManager
Attributes
- Returns
-
the configured ThreadManager
provide function to handle errors encountered during processing
provide function to handle errors encountered during processing
process the provided error. If some return, the error will be stored. If none return the error is discarded afterward
Value parameters
- onError
-
the function to process the error
Attributes
- Returns
-
the current ThreadManagerBuilder
create the configured ThreadManager and start it as well
create the configured ThreadManager and start it as well
Attributes
- Returns
-
the configured ThreadManager
if set the threads stop if the job queue runs empty
if set the threads stop if the job queue runs empty
Attributes
- Returns
-
the current builder
set the number of threads to be used in parallel (default: #cores)
set the number of threads to be used in parallel (default: #cores)
Value parameters
- count
-
the number of threads
Attributes
- Returns
-
the current ThreadManagerBuilder