public interface ITimeToLive
ITimeToLive
interface defines methods for instances the have a limited time to live.Modifier and Type | Method and Description |
---|---|
long |
getAliveTime()
Gets the time this instance is alive.
|
int |
getTimeToLive()
Gets the total time to live of this instance.
|
boolean |
timeToLiveReached()
Determines whether this instance has exceeded its time to live.
|
long getAliveTime()
int getTimeToLive()
boolean timeToLiveReached()