Package io.deephaven.kv
Enum Class KVExecutorServiceInstance
- All Implemented Interfaces:
Serializable
,Comparable<KVExecutorServiceInstance>
,java.lang.constant.Constable
A global static
ExecutorService
built with a thread factory that creates daemon threads,
thus the executor doesn't need to be shutdown.
The ExecutorService
will scale from 0 - 8 core threads, each which will timeout after
120 seconds of idling. If all 8 core threads are busy, the task will be queued in an unbounded
queue. See ThreadPoolExecutor
for more details about thread and queueing semantics.
Due to the nature of unbounded queues, callers should prefer to execute tasks where they can monitor their own timeout as appropriate.
The number of threads and keepalive timeout can be changed by setting the system properties
io.deephaven.kv.KVExecutorServiceInstance.threads
and
io.deephaven.kv.KVExecutorServiceInstance.keepalive_seconds
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorService
static KVExecutorServiceInstance
Returns the enum constant of this class with the specified name.static KVExecutorServiceInstance[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getInstance
-