Expiration instances to
determine if a slot has expired or is still invalid for claiming.
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: The age of the object in milliseconds.Get the approximate number of milliseconds that have transpired since the object was allocated. |
| public long | Returns: The objects claim count.Get the number of times the object has been claimed since it was allocated. |
| public T | Returns: The Poolable being examined for validity. Never `null`.Get the Poolable object represented by this SlotInfo instance. |
| public long | Returns: The current stamp value.Get the stamp value that has been set on this SlotInfo, or 0 if none has been set since the Poolable was allocated. |
| public void |
| getAgeMillis | back to summary |
|---|---|
| public long getAgeMillis() Get the approximate number of milliseconds that have transpired since the object was allocated.
| |
| getClaimCount | back to summary |
|---|---|
| public long getClaimCount() Get the number of times the object has been claimed since it was allocated.
| |
| getPoolable | back to summary |
|---|---|
| public T getPoolable() Get the Poolable object represented by this SlotInfo instance. Warning Do not Warning Also note that accessing the Poolable through
this method, from your
| |
| getStamp | back to summary |
|---|---|
| public long getStamp() Get the stamp value that has been set on this SlotInfo, or 0 if none has
been set since the Poolable was allocated.
Apart from the zero-value, the actual meaning of this value is completely
up to the
| |
| setStamp | back to summary |
|---|---|
| public void setStamp(long stamp) Set the stamp value on this SlotInfo.
This method is only thread-safe to call from within the scope of the
| |