Class FlowableConverter

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

    public class FlowableConverter
    extends Object
    implements ReactiveTypeConverter<io.reactivex.Flowable>
    Converter handling the RX Java 2 Flowable type. toCompletionStage
    The toCompletionStage(Flowable) method returns a CompletionStage instance completed or failed according to the stream emissions. The returned CompletionStage is redeemed with the first emitted value, null if the stream is empty. If the stream emits multiple values, the first one is used, and the CompletionStage is completed with the first emitted item. Other items and potential error are ignored. If the stream fails before emitting a first item, the CompletionStage is completed with the failure. fromCompletionStage
    The fromCompletionStage(CompletionStage) method returns a Flowable instance completed or failed according to the passed CompletionStage completion. Note that if the future emits a null value, the Flowable fails. If the future completes with a value, the observable emits the value and then completes. If the future completes with a failure, the stream emits the failure. fromPublisher
    The fromPublisher(Publisher) method returns a Flowable emitting the same items, failure and completion as the passed Publisher. If the passed Publisher is empty, the returned Flowable is also empty. This operation is a pass-through for back-pressure and its behavior is determined by the back-pressure behavior of the passed publisher. This operation uses Flowable.fromPublisher(Publisher). If the passed Publisher is already a Flowable, the instance is used directly. toRSPublisher
    The toRSPublisher(Flowable) method returns a Publisher emitting the same events as the source Flowable. This operation is a pass-through for back-pressure and its behavior is determined by the back-pressure behavior of the passed Flowable. This operation returns the passed Flowable directly.