Companion object.
It is itself an instance of Executors
that uses the default rejected execution handler and thread factory.
Attributes
- Since
-
1.0
- Companion
- class
- Source
- Executors.scala
- Graph
-
- Supertypes
- Self type
-
Executors.type
Members list
Value members
Inherited methods
Creates a new execution context as a fixed thread pool.
Creates a new execution context as a fixed thread pool.
Uses the rejected execution handler and thread factory of the current instance.
Value parameters
- keepAlive
-
the duration pool threads are kept alive when idle, in seconds; 0 means indefinitely.
- size
-
the number of threads in the pool; must be positive.
Attributes
- Throws
-
IllegalArgumentException
if the specified size is not positive or the keep alive time is negative.
- Since
-
1.0
- Inherited from:
- Executors
- Source
- Executors.scala
Creates a new execution context with timer facilities, as a fixed thread pool.
Creates a new execution context with timer facilities, as a fixed thread pool.
Uses the rejected execution handler and thread factory of the current instance.
Value parameters
- size
-
the number of threads in the pool; must be positive.
Attributes
- Throws
-
IllegalArgumentException
if the specified size is not positive.
- Since
-
1.0
- Inherited from:
- Executors
- Source
- Executors.scala
Creates a new execution context as an unlimited thread pool.
Creates a new execution context as an unlimited thread pool.
Uses the rejected execution handler and thread factory of the current instance.
Value parameters
- keepAlive
-
the duration pool threads are kept alive when idle, in seconds; 0 means indefinitely.
Attributes
- Throws
-
IllegalArgumentException
if the keep alive time is negative.
- Since
-
1.0
- Inherited from:
- Executors
- Source
- Executors.scala
Returns a thread pool factory that uses a DiscardPolicy
rejected execution handler, and the same thread factory as before.
Returns a thread pool factory that uses a DiscardPolicy
rejected execution handler, and the same thread factory as before.
Attributes
- See also
- Since
-
1.0
- Inherited from:
- Executors
- Source
- Executors.scala
Returns a thread pool factory that sets its threads in daemon mode and uses the same rejected execution handler as before.
Returns a thread pool factory that sets its threads in daemon mode and uses the same rejected execution handler as before.
Attributes
- Since
-
1.0
- Inherited from:
- Executors
- Source
- Executors.scala
Returns a thread pool factory that uses the given thread factory, and the same rejected execution handler as before..
Returns a thread pool factory that uses the given thread factory, and the same rejected execution handler as before..
Attributes
- Since
-
1.0
- Inherited from:
- Executors
- Source
- Executors.scala
Returns a thread pool factory that uses the given rejected execution handler, and the same thread factory as before.
Returns a thread pool factory that uses the given rejected execution handler, and the same thread factory as before.
Attributes
- Since
-
1.0
- Inherited from:
- Executors
- Source
- Executors.scala
Givens
Givens
Implicit thread pool.
Implicit thread pool.
It is an unlimited thread pool with the default rejected execution handler, thread factory and keepalive time (1 second).
Attributes
- Since
-
1.0
- Source
- Executors.scala