Class CrossWorkerPoller
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.sse.CrossWorkerPoller
Cross-worker poller for SSE event delivery. Each poller is dedicated to a single (taskId, client) pair and manages its own
event index when the client is on a different worker than the original streaming session.
Lifecycle: 1. Created when client resubscribes on different worker 2. Replays ALL events from Object Store (full history) 3.
Polls for new events using scheduled execution 4. Stops when client disconnects or final event received
-
Constructor Summary
ConstructorsConstructorDescriptionCrossWorkerPoller(String taskId, org.mule.runtime.http.api.sse.server.SseClient client, TaskRepository repository, A2ASerializer a2ASerializer, SseClientRegistry sseClientRegistry, org.mule.runtime.api.scheduler.Scheduler scheduler) -
Method Summary
-
Constructor Details
-
CrossWorkerPoller
public CrossWorkerPoller(String taskId, org.mule.runtime.http.api.sse.server.SseClient client, TaskRepository repository, A2ASerializer a2ASerializer, SseClientRegistry sseClientRegistry, org.mule.runtime.api.scheduler.Scheduler scheduler)
-
-
Method Details
-
start
public void start()Starts the poller. The poller will manage its own lifecycle and stop when the client disconnects.
-