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