io.vertx.rx.java

## Class SingleOnSubscribeAdapter<T>

- java.lang.Object
- - io.vertx.rx.java.SingleOnSubscribeAdapter<T>

- All Implemented Interfaces:
    Action, Action1<SingleSubscriber<? super T>>, Function, Single.OnSubscribe<T>

      public class SingleOnSubscribeAdapter<T>
      extends Object
      implements Single.OnSubscribe<T>

  Author:
    Julien Viet

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected java.util.function.Consumer<Handler<AsyncResult<T>>>` | `consumer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SingleOnSubscribeAdapter(java.util.function.Consumer<Handler<AsyncResult<T>>> consumer)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `call(SingleSubscriber<? super T> sub)` Subscription

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### consumer

          protected final java.util.function.Consumer<Handler<AsyncResult<T>>> consumer

  - ### Constructor Detail

    - #### SingleOnSubscribeAdapter

          public SingleOnSubscribeAdapter(java.util.function.Consumer<Handler<AsyncResult<T>>> consumer)

  - ### Method Detail

    - #### call

          public void call(SingleSubscriber<? super T> sub)

      Subscription
      Specified by:
        `call` in interface `Action1<SingleSubscriber<? super T>>`

Copyright © 2022 Eclipse. All rights reserved.