接口 RSocketRequester.RetrieveSpec

    • 方法详细资料

      • send

        reactor.core.publisher.Mono<Voidsend()
        Perform a fireAndForget.
      • retrieveMono

        <T> reactor.core.publisher.Mono<T> retrieveMono​(Class<T> dataType)
        Perform a requestResponse exchange.

        If the return type is Mono<Void>, the Mono will complete after all data is consumed.

        Note: This method will raise an error if the request payload is a multi-valued Publisher as there is no many-to-one RSocket interaction.

        类型参数:
        T - parameter for the expected data type
        参数:
        dataType - the expected data type for the response
        返回:
        the decoded response
      • retrieveFlux

        <T> reactor.core.publisher.Flux<T> retrieveFlux​(Class<T> dataType)
        Perform an requestStream or a requestChannel exchange depending on whether the request input is single or multi-payload.

        If the return type is Flux<Void>, the Flux will complete after all data is consumed.

        类型参数:
        T - parameterize the expected type of values
        参数:
        dataType - the expected type for values in the response
        返回:
        the decoded response