| Package | Description |
|---|---|
| com.trivago.triava.tcache | |
| com.trivago.triava.time |
| Modifier and Type | Method and Description |
|---|---|
protected TimeSource |
Cache.activateTimeSource()
Returns the TimeSource for this Cache.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EstimatorTimeSource
A TimeSource that provides the value of System.currentTimeMillis() in the given millisecond precision.
|
class |
OffsetTimeSource
A TimeSource that produces times with an offset to the actual time.
|
class |
SystemTimeSource
A TimeSource that uses System.currentTimeMillis() as time source.
|
| Constructor and Description |
|---|
EstimatorTimeSource(TimeSource parentTimeSource,
int updateIntervalMillis,
TriavaLogger logger)
Creates a TimeSource with the given update interval.
|
OffsetTimeSource(long startTimeMillis,
TimeSource parentTimeSource)
Creates a TimeSource that produces times starting with the given startTimeMillis.
|
Copyright © 2018 trivago. All rights reserved.