de.halcony.processes.threading.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 Object
trait Matchable
class Any
Members list
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
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