| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv final Consumer | |
| pack-priv final Supplier | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| public | MaybeUsing(Supplier<? extends D> resourceSupplier, Function<? super D, ? extends MaybeSource<? extends T>> sourceSupplier, Consumer<? super D> resourceDisposer, boolean eager)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| eager | back to summary |
|---|---|
| pack-priv final boolean eager | |
| resourceDisposer | back to summary |
|---|---|
| pack-priv final Consumer<? super D> resourceDisposer | |
| resourceSupplier | back to summary |
|---|---|
| pack-priv final Supplier<? extends D> resourceSupplier | |
| sourceSupplier | back to summary |
|---|---|
| pack-priv final Function<? super D, ? extends MaybeSource<? extends T>> sourceSupplier | |
| MaybeUsing | back to summary |
|---|---|
| public MaybeUsing(Supplier<? extends D> resourceSupplier, Function<? super D, ? extends MaybeSource<? extends T>> sourceSupplier, Consumer<? super D> resourceDisposer, boolean eager) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(MaybeObserver<? super T> observer)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Consumer | |
| pack-priv final MaybeObserver | |
| pack-priv final boolean | |
| private static final long | |
| pack-priv Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv | UsingObserver(MaybeObserver<? super T> actual, D resource, Consumer<? super D> disposer, boolean eager)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| pack-priv void | |
| public boolean | isDisposed()
Implements io. |
| public void | onComplete()
Implements io. |
| public void | |
| public void | |
| public void | onSuccess(T
the item emitted by the value)MaybeImplements io. MaybeObserver with one item and that the Maybe has finished sending
push-based notifications.
|
| disposer | back to summary |
|---|---|
| pack-priv final Consumer<? super D> disposer | |
| downstream | back to summary |
|---|---|
| pack-priv final MaybeObserver<? 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 | |
| UsingObserver | back to summary |
|---|---|
| pack-priv UsingObserver(MaybeObserver<? super T> actual, D resource, Consumer<? super D> disposer, boolean eager) | |
| 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.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Called once the deferred computation completes normally.
| |
| 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
| |