Interface DisposableStreamerCancellation
- All Superinterfaces:
Disposable, StreamerCancellation
- All Known Implementing Classes:
CompositeDisposable
Represents the full, disposable cancellation interface for
Streamer
operations.
It was decided to have a separate set of interfaces instead of trying to
retrofit DisposableContainer.
- Since:
- 4.0.0
-
Method Summary
Methods inherited from interface Disposable
asAutoCloseable, dispose, isDisposedModifier and TypeMethodDescriptiondefault @NonNull AutoCloseableWraps thisDisposableinto anAutoCloseableinstance that can be used with try-with-resources constructs.voiddispose()Dispose the resource, the operation should be idempotent.booleanReturns true if this resource has been disposed.Methods inherited from interface StreamerCancellation
add, delete, derive, isDisposed, removeModifier and TypeMethodDescriptionbooleanAdds a disposable to this container or disposes it if the container has been disposed.booleanRemoves but does not dispose the given disposable if it is part of this container.derive()Create a derived sub-cancellation management interface that can get disposed by this cancellation management object but disposing the sub-cancellation manager does not dispose this currentStreamerCancellationinstance..booleanReturns true if this resource has been disposed.booleanRemoves and disposes the given disposable if it is part of this container.