Package | Description |
---|---|
com.google.common.base |
Basic utility libraries and interfaces.
|
com.google.common.cache |
This package contains caching utilities.
|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Field and Description |
---|---|
private static Ticker |
Ticker.SYSTEM_TICKER |
private Ticker |
Stopwatch.ticker |
Modifier and Type | Method and Description |
---|---|
static Ticker |
Ticker.systemTicker()
A ticker that reads the current time using
System.nanoTime() . |
Modifier and Type | Method and Description |
---|---|
static Stopwatch |
Stopwatch.createStarted(Ticker ticker)
Creates (and starts) a new stopwatch, using the specified time source.
|
static Stopwatch |
Stopwatch.createUnstarted(Ticker ticker)
Creates (but does not start) a new stopwatch, using the specified time source.
|
Constructor and Description |
---|
Stopwatch(Ticker ticker) |
Modifier and Type | Field and Description |
---|---|
(package private) static Ticker |
CacheBuilder.NULL_TICKER |
(package private) Ticker |
LocalCache.ticker
Measures time in a testable way.
|
(package private) Ticker |
LocalCache.ManualSerializationProxy.ticker |
(package private) Ticker |
CacheBuilder.ticker |
Modifier and Type | Method and Description |
---|---|
(package private) Ticker |
CacheBuilder.getTicker(boolean recordsTime) |
Modifier and Type | Method and Description |
---|---|
CacheBuilder<K,V> |
CacheBuilder.ticker(Ticker ticker)
Specifies a nanosecond-precision time source for this cache.
|
Constructor and Description |
---|
ManualSerializationProxy(LocalCache.Strength keyStrength,
LocalCache.Strength valueStrength,
Equivalence<java.lang.Object> keyEquivalence,
Equivalence<java.lang.Object> valueEquivalence,
long expireAfterWriteNanos,
long expireAfterAccessNanos,
long maxWeight,
Weigher<K,V> weigher,
int concurrencyLevel,
RemovalListener<? super K,? super V> removalListener,
Ticker ticker,
CacheLoader<? super K,V> loader) |
Modifier and Type | Class and Description |
---|---|
class |
FakeTicker
A Ticker whose value can be advanced programmatically in test.
|
Modifier and Type | Method and Description |
---|---|
private Ticker |
FreshValueGenerator.generateTicker() |