Class CompletableConverter

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

    public class CompletableConverter
    extends Object
    implements ReactiveTypeConverter<io.reactivex.Completable>
    Converter handling the RX Java 2 Completable type. toCompletionStage
    The toCompletionStage(Completable) method returns a CompletionStage instance completed with null upon success or failed according to the Completable signals. fromCompletionStage
    The fromCompletionStage(CompletionStage) method returns a Completable instance completed or failed according to the passed CompletionStage completion. If the future emits a null value, the Completable is completed successfully. If the future redeems a non-null value, the Completable completes successfully, but the value is ignored. If the future is completed with an exception, the Completable fails. fromPublisher
    The fromPublisher(Publisher) method returns a Completable emitting the completion signal when the passed stream reached its end. If the passed Publisher is empty, the returned Completable completes. If the passed stream emits values, they are discarded. If the passed @{link Publisher} emits a failure before its completion, the returned Completable fails. toRSPublisher
    The toRSPublisher(Completable) method returns a stream emitting an empty stream or a failed stream depending of the Completable.