Package org.apache.directory.api.util
Interface TimeProvider
-
- All Known Implementing Classes:
MockTimeProvider
public interface TimeProviderProvides 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 TimeProviderDEFAULTThe default time provider that always returns the system time.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcurrentIimeMillis()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.
-
-