io.vertx.rx.java

## Class SingleOnSubscribeAdapter<T>

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

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

      public class SingleOnSubscribeAdapter<T>
      extends Object
      implements rx.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(rx.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(rx.SingleSubscriber<? super T> sub)

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

Copyright © 2017. All rights reserved.