Class RxJava3Adapter

java.lang.Object
io.github.resilience4j.rxjava3.adapter.RxJava3Adapter

public class RxJava3Adapter extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> io.reactivex.rxjava3.core.Flowable<T>
    toFlowable(io.github.resilience4j.core.EventPublisher<T> eventPublisher)
    Converts the EventPublisher into a Flowable.
    static <T> io.reactivex.rxjava3.core.Observable<T>
    toObservable(io.github.resilience4j.core.EventPublisher<T> eventPublisher)
    Converts the EventPublisher into an Observable.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RxJava3Adapter

      public RxJava3Adapter()
  • Method Details

    • toFlowable

      public static <T> io.reactivex.rxjava3.core.Flowable<T> toFlowable(io.github.resilience4j.core.EventPublisher<T> eventPublisher)
      Converts the EventPublisher into a Flowable.
      Type Parameters:
      T - the type of the event
      Parameters:
      eventPublisher - the event publisher
      Returns:
      the Flowable
    • toObservable

      public static <T> io.reactivex.rxjava3.core.Observable<T> toObservable(io.github.resilience4j.core.EventPublisher<T> eventPublisher)
      Converts the EventPublisher into an Observable.
      Type Parameters:
      T - the type of the event
      Parameters:
      eventPublisher - the event publisher
      Returns:
      the Observable