Interface ResponseCollectExternal

All Known Implementing Classes:
ResponseCollectExternalMessage

public interface ResponseCollectExternal
Aggregated response collected from multiple external (Netty) servers.

Provides convenience methods to check whether any of the collected ExternalResponse instances indicate success.

Since:
25.1
Author:
渔民小镇
date:
2025-09-16
  • Method Details

    • getResponseList

      List<ExternalResponse> getResponseList()
      Get the list of responses collected from external servers.
      Returns:
      the external response list
    • anySuccess

      default boolean anySuccess()
      Check whether at least one collected response is successful.
      Returns:
      true if any response has a zero error code
    • optionalAnySuccess

      default Optional<ExternalResponse> optionalAnySuccess()
      Return an Optional containing any successful response, or empty if none succeeded.
      Returns:
      an optional successful ExternalResponse