public interface ActiveObject
An active object is supposed to have regular activity.
If the object last activity gets too old (older than the configured timeout delay), the activity watchdog will kick in and call the onActivityTimeout() method of the object.
| Modifier and Type | Method and Description |
|---|---|
long |
getLastActivity()
Get a timestamp of this object's last activity
|
long |
getTimeoutDelay()
Get the maximum allowed time between activities
|
boolean |
onActivityTimeout()
Called if the object has been inactive for more
|
Copyright © 2021. All rights reserved.