| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReference(T obj) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
long |
getAge()
Get the age of this
Reference since it's creation. |
int |
getReferenceCount()
Get the current number of references retained to this object.
|
void |
release()
Decrease the reference count by 1.
|
void |
release(int decr)
Decrease the reference count by incr amount.
|
void |
retain()
Increase reference count by 1.
|
void |
retain(int incr)
Increase reference count by incr amount.
|
java.lang.String |
toString() |
protected AbstractReference(T obj)
public long getAge()
ReferenceReference since it's creation.public int getReferenceCount()
ReferencegetReferenceCount in interface Reference<T extends reactor.core.support.Recyclable>public void retain()
Referencepublic void retain(int incr)
Referencepublic void release()
Referencepublic void release(int decr)
Referencepublic T get()
get in interface reactor.fn.Supplier<T extends reactor.core.support.Recyclable>public java.lang.String toString()
toString in class java.lang.Object