Class A2AStreamingHandler
-
- All Implemented Interfaces:
@Service()@Profile(value = {"a2a"}) public final class A2AStreamingHandlerHandles streaming functionality for A2A messages
-
-
Constructor Summary
Constructors Constructor Description A2AStreamingHandler(ObjectMapper objectMapper)
-
Method Summary
Modifier and Type Method Description final SseEmittercreateStream(String streamId)Creates a new SSE stream for the given stream ID final UnitsendStreamEvent(String streamId, StreamingEventKind event)Sends a streaming event to the specified stream final UnitcloseStream(String streamId)Closes the specified stream final Unitshutdown()Shuts down the streaming handler -
-
Method Detail
-
createStream
final SseEmitter createStream(String streamId)
Creates a new SSE stream for the given stream ID
-
sendStreamEvent
final Unit sendStreamEvent(String streamId, StreamingEventKind event)
Sends a streaming event to the specified stream
-
closeStream
final Unit closeStream(String streamId)
Closes the specified stream
-
-
-
-