Package org.opends.server.core
Interface CoreConfigManager.EtimeService
-
- All Known Implementing Classes:
CoreConfigManager.EtimeServices
- Enclosing class:
- CoreConfigManager
public static interface CoreConfigManager.EtimeService
Definition of a service providing etimes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TimeUnit
getTimeUnit()
Returns the time unit of this etime service.long
now()
Returns a value that represents "now" since the epoch.default long
since(long past)
Computes the elapsed time between now and past.
-
-
-
Method Detail
-
now
long now()
Returns a value that represents "now" since the epoch.- Returns:
- a value that represents "now" since the epoch
-
getTimeUnit
TimeUnit getTimeUnit()
Returns the time unit of this etime service.- Returns:
- the time unit of this etime service
-
since
default long since(long past)
Computes the elapsed time between now and past.- Parameters:
past
- time value to compare to now.- Returns:
- the elapsed time
-
-