public final class CancellableDisposable extends AtomicReference<Cancellable> implements Disposable
Watch out for the AtomicReference API leak!
Constructor and Description |
---|
CancellableDisposable(Cancellable cancellable) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the resource, the operation should be idempotent.
|
boolean |
isDisposed()
Returns true if this resource has been disposed.
|
accumulateAndGet, compareAndSet, get, getAndAccumulate, getAndSet, getAndUpdate, lazySet, set, toString, updateAndGet, weakCompareAndSet
public CancellableDisposable(Cancellable cancellable)
public boolean isDisposed()
Disposable
isDisposed
in interface Disposable
public void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2018 JBoss by Red Hat. All rights reserved.