public class LastRun
extends java.lang.Object
| Constructor and Description |
|---|
LastRun(java.nio.file.Path configDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(java.lang.String abc) |
java.util.Optional<java.time.LocalDateTime> |
getLast(java.lang.String key) |
void |
setLast(java.lang.String key,
java.time.LocalDateTime last) |
void |
setLast(java.lang.String key,
java.time.ZonedDateTime last,
java.time.ZoneId zoneId)
Set the last time for the given key, the ZonedDateTime is converted to a local date time for supplied zoneId
|
public java.util.Optional<java.time.LocalDateTime> getLast(java.lang.String key)
public void setLast(java.lang.String key,
java.time.LocalDateTime last)
public void setLast(java.lang.String key,
java.time.ZonedDateTime last,
java.time.ZoneId zoneId)
key - - store the localDateTime for this keylast - - can be any time zone, will be converted to the supplied zonezoneId - - convert to a local time in this zonepublic void clear(java.lang.String abc)