Class SingleConverter

  • All Implemented Interfaces:
    ReactiveTypeConverter<io.reactivex.Single>

    public class SingleConverter
    extends Object
    implements ReactiveTypeConverter<io.reactivex.Single>
    Converter handling the RX Java 2 Single type. toCompletionStage
    The toCompletionStage(Single) method returns a CompletionStage instance completed or failed according to the single emission. fromCompletionStage
    The fromCompletionStage(CompletionStage) method returns a Single instance completed or failed according to the passed CompletionStage completion. Note that if the future emits a null value, the Single emits a failure. fromPublisher
    The fromPublisher(Publisher) method returns a Single emitting the first value of the stream. If the passed Publisher is empty, the returned Single fails. If the passed stream emits more than one value, only the first one is used, the other values are discarded. toRSPublisher
    The toRSPublisher(Single) method returns a stream emitting a single value followed by the completion signal. If the passed Single fails, the returned stream also fails.