Class CompletableConverter
- java.lang.Object
-
- io.smallrye.reactive.converters.rxjava2.CompletableConverter
-
- All Implemented Interfaces:
ReactiveTypeConverter<io.reactivex.Completable>
public class CompletableConverter extends Object implements ReactiveTypeConverter<io.reactivex.Completable>
Converter handling the RX Java 2Completabletype. toCompletionStage
ThetoCompletionStage(Completable)method returns aCompletionStageinstance completed withnullupon success or failed according to theCompletablesignals. fromCompletionStage
ThefromCompletionStage(CompletionStage)method returns aCompletableinstance completed or failed according to the passedCompletionStagecompletion. If the future emits anullvalue, theCompletableis completed successfully. If the future redeems a non-null value, theCompletablecompletes successfully, but the value is ignored. If the future is completed with an exception, theCompletablefails. fromPublisher
ThefromPublisher(Publisher)method returns aCompletableemitting the completion signal when the passed stream reached its end. If the passedPublisheris empty, the returnedCompletablecompletes. If the passed stream emits values, they are discarded. If the passed @{link Publisher} emits a failure before its completion, the returnedCompletablefails. toRSPublisher
ThetoRSPublisher(Completable)method returns a stream emitting an empty stream or a failed stream depending of theCompletable.
-
-
Constructor Summary
Constructors Constructor Description CompletableConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanemitAtMostOneItem()booleanemitItems()io.reactivex.CompletablefromCompletionStage(CompletionStage cs)<X> io.reactivex.CompletablefromPublisher(org.reactivestreams.Publisher<X> publisher)booleansupportNullValue()<T> CompletionStage<T>toCompletionStage(io.reactivex.Completable instance)<X> org.reactivestreams.Publisher<X>toRSPublisher(io.reactivex.Completable instance)Class<io.reactivex.Completable>type()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.reactive.converters.ReactiveTypeConverter
requireAtLeastOneItem
-
-
-
-
Method Detail
-
toCompletionStage
public <T> CompletionStage<T> toCompletionStage(io.reactivex.Completable instance)
- Specified by:
toCompletionStagein interfaceReactiveTypeConverter<io.reactivex.Completable>
-
fromCompletionStage
public io.reactivex.Completable fromCompletionStage(CompletionStage cs)
- Specified by:
fromCompletionStagein interfaceReactiveTypeConverter<io.reactivex.Completable>
-
toRSPublisher
public <X> org.reactivestreams.Publisher<X> toRSPublisher(io.reactivex.Completable instance)
- Specified by:
toRSPublisherin interfaceReactiveTypeConverter<io.reactivex.Completable>
-
fromPublisher
public <X> io.reactivex.Completable fromPublisher(org.reactivestreams.Publisher<X> publisher)
- Specified by:
fromPublisherin interfaceReactiveTypeConverter<io.reactivex.Completable>
-
type
public Class<io.reactivex.Completable> type()
- Specified by:
typein interfaceReactiveTypeConverter<io.reactivex.Completable>
-
emitItems
public boolean emitItems()
- Specified by:
emitItemsin interfaceReactiveTypeConverter<io.reactivex.Completable>
-
emitAtMostOneItem
public boolean emitAtMostOneItem()
- Specified by:
emitAtMostOneItemin interfaceReactiveTypeConverter<io.reactivex.Completable>
-
supportNullValue
public boolean supportNullValue()
- Specified by:
supportNullValuein interfaceReactiveTypeConverter<io.reactivex.Completable>
-
-