| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Consumer | |
| pack-priv final boolean | |
| pack-priv final Supplier | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| public | SingleUsing(Supplier<U> resourceSupplier, Function<? super U, ? extends SingleSource<? extends T>> singleFunction, Consumer<? super U> disposer, boolean eager)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| disposer | back to summary |
|---|---|
| pack-priv final Consumer<? super U> disposer | |
| eager | back to summary |
|---|---|
| pack-priv final boolean eager | |
| resourceSupplier | back to summary |
|---|---|
| pack-priv final Supplier<U> resourceSupplier | |
| singleFunction | back to summary |
|---|---|
| pack-priv final Function<? super U, ? extends SingleSource<? extends T>> singleFunction | |
| SingleUsing | back to summary |
|---|---|
| public SingleUsing(Supplier<U> resourceSupplier, Function<? super U, ? extends SingleSource<? extends T>> singleFunction, Consumer<? super U> disposer, boolean eager) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(final SingleObserver<? super T> observer)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Consumer | |
| pack-priv final SingleObserver | |
| pack-priv final boolean | |
| private static final long | |
| pack-priv Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv | UsingSingleObserver(SingleObserver<? super T> actual, U resource, boolean eager, Consumer<? super U> disposer)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| pack-priv void | |
| public boolean | isDisposed()
Implements io. |
| public void | |
| public void | |
| public void | onSuccess(T
the item emitted by the value)SingleImplements io. SingleObserver with a single item and that the Single has finished sending
push-based notifications.
|
| disposer | back to summary |
|---|---|
| pack-priv final Consumer<? super U> disposer | |
| downstream | back to summary |
|---|---|
| pack-priv final SingleObserver<? super T> downstream | |
| eager | back to summary |
|---|---|
| pack-priv final boolean eager | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| upstream | back to summary |
|---|---|
| pack-priv Disposable upstream | |
| UsingSingleObserver | back to summary |
|---|---|
| pack-priv UsingSingleObserver(SingleObserver<? super T> actual, U resource, boolean eager, Consumer<? super U> disposer) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| disposeResource | back to summary |
|---|---|
pack-priv void disposeResource()
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| onError | back to summary |
|---|---|
public void onError(Throwable e)
| |
| onSubscribe | back to summary |
|---|---|
public void onSubscribe(Disposable d)
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T value) Implements io. Doc from io. Notifies the
The
| |