Class ServerOperations
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.operation.ServerOperations
Operations available for the server configuration that can be used within flows.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendPushNotification(ServerAgent serverAgent, InputStream notificationMessage, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void, Void> completionCallback) Sends a push notification with the provided task or message payload.
-
Constructor Details
-
ServerOperations
public ServerOperations()
-
-
Method Details
-
sendPushNotification
@DisplayName("A2A Server - Send Push Notification") @Summary("Sends a push notification for a task at any stage of processing") @Throws({PushNotificationErrorTypeProvider.class,BasicOperationErrorTypeProvider.class,JsonRpcErrorTypeProvider.class}) public void sendPushNotification(@Connection ServerAgent serverAgent, @Content @DisplayName("Notification Message") @Summary("The JSON notification message (task or message object). Will be automatically wrapped in JSON-RPC format.") InputStream notificationMessage, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void, Void> completionCallback) Sends a push notification with the provided task or message payload. This operation allows sending async updates at various stages/steps of a task, not just at the end. The notification message will be automatically wrapped in JSON-RPC format. This is a non-blocking operation that uses CompletionCallback for async result handling.- Parameters:
serverAgent- The server agent connectionnotificationMessage- The JSON notification message (task or message object). Will be automatically wrapped in JSON-RPC format.completionCallback- Callback to signal operation completion (success or error)
-