Package io.a2a.server.tasks
Class ResultAggregator
java.lang.Object
io.a2a.server.tasks.ResultAggregator
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionResultAggregator(TaskManager taskManager, @Nullable Message message, Executor executor, Executor eventConsumerExecutor) -
Method Summary
Modifier and TypeMethodDescriptionconsumeAll(EventConsumer consumer) consumeAndBreakOnInterrupt(EventConsumer consumer, boolean blocking) consumeAndEmit(EventConsumer consumer) @Nullable EventKind
-
Constructor Details
-
ResultAggregator
public ResultAggregator(TaskManager taskManager, @Nullable Message message, Executor executor, Executor eventConsumerExecutor)
-
-
Method Details
-
getCurrentResult
-
consumeAndEmit
-
consumeAll
- Throws:
A2AError
-
consumeAndBreakOnInterrupt
public ResultAggregator.EventTypeAndInterrupt consumeAndBreakOnInterrupt(EventConsumer consumer, boolean blocking) throws A2AError - Throws:
A2AError
-