public abstract class ReferenceCountedBase extends java.lang.Object implements ReferenceCounted
ReferenceCounted| Constructor and Description |
|---|
ReferenceCountedBase() |
| Modifier and Type | Method and Description |
|---|---|
ReferenceCountedBase |
acquire()
Signal the resource that something is holding a reference to it.
|
long |
acquireAndCount()
Signal the resource that something is holding a reference to it.
|
long |
getReferenceCount()
Number of active references
|
void |
release()
Signal the resource that a previous hold is complete
|
long |
releaseAndCount()
Signal the resource that a previous hold is complete.
|
public ReferenceCountedBase acquire()
ReferenceCountedacquire in interface ReferenceCountedpublic long acquireAndCount()
ReferenceCountedacquireAndCount in interface ReferenceCountedpublic long releaseAndCount()
ReferenceCountedreleaseAndCount in interface ReferenceCountedpublic void release()
ReferenceCountedrelease in interface ReferenceCountedpublic long getReferenceCount()
ReferenceCountedgetReferenceCount in interface ReferenceCounted