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
FieldsModifier and TypeFieldDescriptionstatic final TimeProviderThe default time provider that always returns the system time. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the current time in milliseconds sind 1970-01-01 UTC.
-
Field Details
-
DEFAULT
The default time provider that always returns the system time.
-
-
Method Details
-
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
-