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()
ReferenceCounted
acquire
in interface ReferenceCounted
public long acquireAndCount()
ReferenceCounted
acquireAndCount
in interface ReferenceCounted
public long releaseAndCount()
ReferenceCounted
releaseAndCount
in interface ReferenceCounted
public void release()
ReferenceCounted
release
in interface ReferenceCounted
public long getReferenceCount()
ReferenceCounted
getReferenceCount
in interface ReferenceCounted