Package org.apache.directory.api.util
Interface TimeProvider
-
- All Known Implementing Classes:
MockTimeProvider
public interface TimeProvider
Provides the current time, i.e.System.currentTimeMillis()
. This abstraction is done to be able to switch the implementation for time dependent tests.- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description static TimeProvider
DEFAULT
The default time provider that always returns the system time.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
currentIimeMillis()
Gets the current time in milliseconds sind 1970-01-01 UTC.
-
-
-
Field Detail
-
DEFAULT
static final TimeProvider DEFAULT
The default time provider that always returns the system time.
-
-
Method Detail
-
currentIimeMillis
long currentIimeMillis()
Gets the current time in milliseconds sind 1970-01-01 UTC.- Returns:
- the current time in milliseconds sind 1970-01-01 UTC
-
-