AsyncConnection
, AsyncConnectionSource
, AsyncReadBinding
, AsyncReadWriteBinding
, AsyncWriteBinding
, Connection
, ConnectionSource
, ReadBinding
, ReadWriteBinding
, WriteBinding
AsyncClusterBinding
, AsyncSingleConnectionReadBinding
, ClusterBinding
, SingleConnectionReadBinding
, SingleServerBinding
public interface ReferenceCounted
Modifier and Type | Method | Description |
---|---|---|
int |
getCount() |
Gets the current reference count, which starts at 0.
|
void |
release() |
Release a reference to this object.
|
ReferenceCounted |
retain() |
Retain an additional reference to this object.
|
int getCount()
ReferenceCounted retain()
void release()
IllegalStateException
- if the reference count is already 0