public class ActivityTracker extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Duration |
getInactivityDelay() |
boolean |
isRunning() |
static ActivityTracker |
of(Duration inactivityKillerDelay) |
void |
onInactivity(Runnable runnable) |
void |
onStart(Runnable runnable) |
void |
onStop(Runnable runnable) |
void |
start() |
void |
stop() |
void |
touch()
Record any activity
|
public Duration getInactivityDelay()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void onInactivity(Runnable runnable)
public void onStart(Runnable runnable)
public void onStop(Runnable runnable)
public void touch()
public boolean isRunning()
public void stop()
public void start()
public static ActivityTracker of(Duration inactivityKillerDelay)
Copyright © 2022. All rights reserved.