Class StreamingContext
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.repository.StreamingContext
- All Implemented Interfaces:
Serializable
Groups all SSE/streaming-related context data for a task.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for serialization and cases where context is built incrementally.StreamingContext(String requestId, String workerInstanceId) Constructor for creating a complete streaming context. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBufferedEvent(TaskEvent event) voidsetRequestId(String requestId) voidsetWorkerInstanceId(String workerInstanceId)
-
Constructor Details
-
StreamingContext
public StreamingContext()Default constructor for serialization and cases where context is built incrementally. -
StreamingContext
Constructor for creating a complete streaming context.- Parameters:
requestId- the original JSON-RPC request identifierworkerInstanceId- the worker instance identifier
-
-
Method Details
-
getRequestId
-
setRequestId
-
getWorkerInstanceId
-
setWorkerInstanceId
-
getBufferedEvents
-
addBufferedEvent
-