Class FixedEngineClock
- java.lang.Object
-
- org.bonitasoft.engine.commons.time.FixedEngineClock
-
- All Implemented Interfaces:
EngineClock
public class FixedEngineClock extends java.lang.Object implements EngineClock
This is a fixed clock with some methods to change this fixed time Only used for testing purpose
-
-
Constructor Summary
Constructors Constructor Description FixedEngineClock(java.time.Instant now)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTime(long amountToAdd, java.time.temporal.TemporalUnit unit)java.time.Instantnow()voidsetNow(java.time.Instant now)
-
-
-
Method Detail
-
now
public java.time.Instant now()
- Specified by:
nowin interfaceEngineClock
-
setNow
public void setNow(java.time.Instant now)
-
addTime
public void addTime(long amountToAdd, java.time.temporal.TemporalUnit unit)
-
-