java.lang.Object
org.mule.sdk.api.runtime.source.Source<T,A>
com.mulesoft.connectors.a2a.internal.server.listener.BaseServerListener<String,RequestAttributes>
com.mulesoft.connectors.a2a.internal.server.listener.task.TaskStreamListener
All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Initialisable

@DisplayName("A2A Server - On Task Stream Listener") @MetadataScope(outputResolver=MessageSendParamsOutputResolver.class) @MediaType("application/json") public class TaskStreamListener extends BaseServerListener<String,RequestAttributes>
Server-side listener for streaming task requests. Activated when clients send streaming requests (messages/stream) to trigger server-side flows and enable real-time SSE event delivery.
  • Constructor Details

    • TaskStreamListener

      public TaskStreamListener()
  • Method Details

    • doInitialise

      protected void doInitialise() throws org.mule.runtime.api.lifecycle.InitialisationException
      Overrides:
      doInitialise in class BaseServerListener<String,RequestAttributes>
      Throws:
      org.mule.runtime.api.lifecycle.InitialisationException
    • onStart

      public void onStart(org.mule.sdk.api.runtime.source.SourceCallback<String,RequestAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException
      Specified by:
      onStart in class org.mule.sdk.api.runtime.source.Source<String,RequestAttributes>
      Throws:
      org.mule.runtime.api.exception.MuleException
    • onStop

      public void onStop()
      Specified by:
      onStop in class org.mule.sdk.api.runtime.source.Source<String,RequestAttributes>
    • onError

      @OnError public void onError(org.mule.runtime.api.message.Error error, org.mule.sdk.api.runtime.source.SourceCallbackContext context)