public interface TimeProvider
System.currentTimeMillis().
This abstraction is done to be able to switch the implementation for time dependent tests.| Modifier and Type | Field and Description |
|---|---|
static TimeProvider |
DEFAULT
The default time provider that always returns the system time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
currentIimeMillis()
Gets the current time in milliseconds sind 1970-01-01 UTC.
|
static final TimeProvider DEFAULT
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.