Class DefaultClockImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.util.DefaultClockImpl
-
- All Implemented Interfaces:
Clock,ClockReader
- Direct Known Subclasses:
TestClockImpl
public class DefaultClockImpl extends Object implements Clock
- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected static CalendarCURRENT_TIME
-
Constructor Summary
Constructors Constructor Description DefaultClockImpl()DefaultClockImpl(TimeZone timeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendargetCurrentCalendar()CalendargetCurrentCalendar(TimeZone timeZone)DategetCurrentTime()TimeZonegetCurrentTimeZone()voidreset()voidsetCurrentCalendar(Calendar currentTime)voidsetCurrentTime(Date currentTime)
-
-
-
Field Detail
-
CURRENT_TIME
protected static volatile Calendar CURRENT_TIME
-
-
Constructor Detail
-
DefaultClockImpl
public DefaultClockImpl()
-
DefaultClockImpl
public DefaultClockImpl(TimeZone timeZone)
-
-
Method Detail
-
setCurrentTime
public void setCurrentTime(Date currentTime)
- Specified by:
setCurrentTimein interfaceClock
-
setCurrentCalendar
public void setCurrentCalendar(Calendar currentTime)
- Specified by:
setCurrentCalendarin interfaceClock
-
getCurrentTime
public Date getCurrentTime()
- Specified by:
getCurrentTimein interfaceClockReader
-
getCurrentCalendar
public Calendar getCurrentCalendar()
- Specified by:
getCurrentCalendarin interfaceClockReader
-
getCurrentCalendar
public Calendar getCurrentCalendar(TimeZone timeZone)
- Specified by:
getCurrentCalendarin interfaceClockReader
-
getCurrentTimeZone
public TimeZone getCurrentTimeZone()
- Specified by:
getCurrentTimeZonein interfaceClockReader
-
-