ThreadManager
de.halcony.processes.threading.ThreadManager
class ThreadManager[T] extends LogSupport
Utility class to manage multiple threads processing jobs created via the ThreadManagerBuilder
Type parameters
- T
-
the type of the jobs being processed by the managed threads
Attributes
- Graph
-
- Supertypes
-
trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Types
Value members
Concrete methods
stop all running threads via interrupts
stop all running threads via interrupts
Attributes
check if there are still threads alive
check if there are still threads alive
Attributes
set the log level for this class
set the log level for this class
Value parameters
- level
-
the log level
Attributes
start the thread pool
start the thread pool
Attributes
- Returns
-
the current ThreadManager
stop all running jobs within a grace period
stop all running jobs within a grace period
Value parameters
- gracePeriodMs
-
the grace period (default 100ms)
Attributes
- Returns
-
whether all threads stopped
wait for the jobs to finish within a timeout
wait for the jobs to finish within a timeout
Value parameters
- timeoutMs
-
the time for the job queue to be finished within
Attributes
Inherited methods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
In this article