Enum Class RunConfig.ToolExecutionMode
- All Implemented Interfaces:
Serializable, Comparable<RunConfig.ToolExecutionMode>, Constable
- Enclosing class:
RunConfig
NONE: defaults to PARALLEL.
SEQUENTIAL: tools execute strictly in request order on the caller thread; each tool must complete (including any asynchronous work) before the next one is subscribed to.
PARALLEL: tools are subscribed to eagerly on the caller thread (i.e. all are kicked off
up-front), but no worker threads are introduced. Tools that are truly asynchronous (e.g. they
return a Single backed by I/O or another scheduler) will run concurrently; tools that
block the subscribing thread (e.g. Single.fromCallable that performs blocking work)
will still execute sequentially. This preserves the historical default behavior.
PARALLEL_SUBSCRIBE: like PARALLEL, but every tool is additionally subscribed on a
worker thread, so blocking tools also run concurrently. Tool implementations must be
thread-safe. The worker is the agent's executor when set, otherwise the RxJava IO scheduler.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RunConfig.ToolExecutionModeReturns the enum constant of this class with the specified name.static RunConfig.ToolExecutionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
SEQUENTIAL
-
PARALLEL
-
PARALLEL_SUBSCRIBE
-
-
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
-