Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface Clock
Where the parts of the layer that judge time – a token’s expiry, a rate
limit’s window – read it from, so a test can move it.
Fields
public static final Clock SYSTEM | The time of the machine. |
Methods
public abstract long currentTimeMillis() | Milliseconds since the epoch. |
Field details
SYSTEM
public static final Clock SYSTEMThe time of the machine.
Method details
currentTimeMillis
public abstract long currentTimeMillis()Milliseconds since the epoch.