public interface Reference<T extends Recyclable> extends Supplier<T>
Reference
provides access to and metadata about a poolable object.Modifier and Type | Method and Description |
---|---|
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.
|
long getAge()
Reference
since it's creation.Reference
was created.int getReferenceCount()
void retain()
void retain(int incr)
incr
- the amount to increment the reference count.void release()
void release(int decr)
decr
- the amount to decrement the reference count.Copyright © 2017. All rights reserved.