| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static @NonNull Disposable | Returns: a shared, disposedDisposable instanceReturns a shared, disposed |
| public static @NonNull Disposable | Returns: a new, non-disposedDisposable instanceReturns a new, non-disposed |
| public static @NonNull Disposable | Returns: the newDisposable instancethe action)Action to wrapConstruct a |
| public static @NonNull Disposable | Returns: the newDisposable instancethe autoCloseable)AutoCloseable to wrapConstruct a |
| public static @NonNull Disposable | Returns: the newDisposable instancethe future)Future to wrapConstruct a |
| public static @NonNull Disposable | Returns: the newDisposable instancethe future, boolean Future to wrapif true, the future cancel happens via allowInterrupt)Future.cancel(true)Construct a |
| public static @NonNull Disposable | Returns: the newDisposable instancethe run)Runnable to wrapConstruct a |
| public static @NonNull Disposable | Returns: the newDisposable instancethe subscription)Runnable to wrapConstruct a |
| public boolean | Returns: true if this resource has been disposedReturns true if this resource has been disposed. |
| public static @NonNull AutoCloseable | Returns: the newAutoCloseable instancethe disposable)Disposable instanceConstruct an |
| dispose | back to summary |
|---|---|
| public void dispose() Dispose the resource, the operation should be idempotent. | |
| disposed | back to summary |
|---|---|
| public static @NonNull Disposable disposed() Returns a shared, disposed
| |
| empty | back to summary |
|---|---|
| public static @NonNull Disposable empty() Returns a new, non-disposed
| |
| fromAction | back to summary |
|---|---|
| public static @NonNull Disposable fromAction(@NonNull Action action) Construct a
| |
| fromAutoCloseable | back to summary |
|---|---|
| public static @NonNull Disposable fromAutoCloseable(@NonNull AutoCloseable autoCloseable) Construct a
| |
| fromFuture | back to summary |
|---|---|
| public static @NonNull Disposable fromFuture(@NonNull Future<?> future) Construct a
The
| |
| fromFuture | back to summary |
|---|---|
| public static @NonNull Disposable fromFuture(@NonNull Future<?> future, boolean allowInterrupt) Construct a
| |
| fromRunnable | back to summary |
|---|---|
| public static @NonNull Disposable fromRunnable(@NonNull Runnable run) Construct a
| |
| fromSubscription | back to summary |
|---|---|
| public static @NonNull Disposable fromSubscription(@NonNull Subscription subscription) Construct a
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Returns true if this resource has been disposed.
| |
| toAutoCloseable | back to summary |
|---|---|
| public static @NonNull AutoCloseable toAutoCloseable(@NonNull Disposable disposable) Construct an
| |