Package io.deephaven.kv
Enum KVExecutorServiceInstance
- All Implemented Interfaces:
Serializable
,Comparable<KVExecutorServiceInstance>
,java.lang.constant.Constable
public enum KVExecutorServiceInstance extends Enum<KVExecutorServiceInstance>
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
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description static ExecutorService
getInstance()
static KVExecutorServiceInstance
valueOf(String name)
Returns the enum constant of this type with the specified name.static KVExecutorServiceInstance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getInstance
-