Interface IHealthInformation
public interface IHealthInformation
Provide Health Information
- Author:
- I-D Media AG
-
Method Summary
Modifier and TypeMethodDescriptionlongGet last health signal time in millislongGet the time between now and the last health signal in millisecondsbooleanCheck if module is sleeping.voidsetSleeping(boolean bSetSleeping) Set to sleepvoidUpdate last health signal with current timestamp
-
Method Details
-
isSleeping
boolean isSleeping()Check if module is sleeping. In this case, we will not evaluate the last health signal timestamp- Returns:
-
updateHealthSignal
void updateHealthSignal()Update last health signal with current timestamp -
getTimePassedSinceLastHealthSignal
long getTimePassedSinceLastHealthSignal()Get the time between now and the last health signal in milliseconds- Returns:
-
getTimeOfLastHealthSignal
long getTimeOfLastHealthSignal()Get last health signal time in millis- Returns:
-
setSleeping
void setSleeping(boolean bSetSleeping) Set to sleep- Parameters:
bSetSleeping-
-