The class extends AtomicReference directly so watch out for the API leak!
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SequentialDisposable(Disposable
the initial disposable, null allowed initial)Construct a SequentialDisposable with the initial Disposable provided. |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public boolean | Returns: true if the operation succeeded, false if the container has been disposedthe Disposable to set, may be null next)Atomically: set the next disposable on this container but don't dispose the previous one (if any) or dispose next if the container has been disposed. |
| public boolean | Returns: true if the operation succeeded, false if the container has been disposedthe Disposable to set, may be null next)Atomically: set the next disposable on this container and dispose the previous one (if any) or dispose next if the container has been disposed. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| SequentialDisposable | back to summary |
|---|---|
| public SequentialDisposable() Constructs an empty SequentialDisposable. | |
| SequentialDisposable | back to summary |
|---|---|
| public SequentialDisposable(Disposable initial) Construct a SequentialDisposable with the initial Disposable provided.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Disposable next) Atomically: set the next disposable on this container but don't dispose the previous one (if any) or dispose next if the container has been disposed.
| |
| update | back to summary |
|---|---|
| public boolean update(Disposable next) Atomically: set the next disposable on this container and dispose the previous one (if any) or dispose next if the container has been disposed.
| |