public class AtomicDisposableReferenceCounter extends Object
| Constructor and Description |
|---|
AtomicDisposableReferenceCounter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
decrementReferenceCounter()
Decrements the reference count.
|
boolean |
incrementReferenceCounter()
Increments the reference count and returns whether it was successful.
|
public boolean incrementReferenceCounter()
If the method returns false, the counter has already been
disposed. Otherwise it returns true.
public boolean decrementReferenceCounter()
If the method returns true, the decrement operation disposed
the counter. Otherwise it returns false.
Copyright © 2015 The Apache Software Foundation. All rights reserved.