-
- All Known Implementing Classes:
EngineBootsCounterFile
public interface EngineBootsProviderAnEngineBootsProviderholds persistently the number of engine boots.- Version:
- 1.2
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetEngineBoots()Returns current engine boot counter value.intupdateEngineBoots()Returns the current engine boot counter value incremented by one.
-
-
-
Method Detail
-
updateEngineBoots
int updateEngineBoots()
Returns the current engine boot counter value incremented by one. If that number would by greater than 2^31-1 then one is returned. The engine boots provider has to make sure that the returned value is persistently stored before the method returns.- Returns:
- the last engine boots counter incremented by one.
-
getEngineBoots
int getEngineBoots()
Returns current engine boot counter value.- Returns:
- the last engine boots counter.
-
-