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 Summary
Modifier and TypeMethodDescriptiondefault booleanCheck whether at least one collected response is successful.Get the list of responses collected from external servers.default Optional<ExternalResponse> Return anOptionalcontaining any successful response, or empty if none succeeded.
-
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:
trueif any response has a zero error code
-
optionalAnySuccess
Return anOptionalcontaining any successful response, or empty if none succeeded.- Returns:
- an optional successful
ExternalResponse
-