Uses of Class
com.google.common.base.Ticker
Packages that use Ticker
Package
Description
Basic utility libraries and interfaces.
Discouraged (in favor of Caffeine) caching utilities.
Testing utilities.
-
Uses of Ticker in com.google.common.base
Fields in com.google.common.base declared as TickerModifier and TypeFieldDescriptionprivate static final Ticker
Ticker.SYSTEM_TICKER
private final Ticker
Stopwatch.ticker
Methods in com.google.common.base that return TickerModifier and TypeMethodDescriptionstatic Ticker
Ticker.systemTicker()
A ticker that reads the current time usingSystem.nanoTime()
.Methods in com.google.common.base with parameters of type TickerModifier and TypeMethodDescriptionstatic 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.Constructors in com.google.common.base with parameters of type Ticker -
Uses of Ticker in com.google.common.cache
Fields in com.google.common.cache declared as TickerModifier and TypeFieldDescription(package private) static final Ticker
CacheBuilder.NULL_TICKER
(package private) Ticker
CacheBuilder.ticker
(package private) final Ticker
LocalCache.ManualSerializationProxy.ticker
(package private) final Ticker
LocalCache.ticker
Measures time in a testable way.Methods in com.google.common.cache that return TickerModifier and TypeMethodDescription(package private) Ticker
CacheBuilder.getTicker
(boolean recordsTime) Methods in com.google.common.cache with parameters of type TickerModifier and TypeMethodDescriptionSpecifies a nanosecond-precision time source for this cache.Constructors in com.google.common.cache with parameters of type TickerModifierConstructorDescriptionprivate
ManualSerializationProxy
(LocalCache.Strength keyStrength, LocalCache.Strength valueStrength, Equivalence<Object> keyEquivalence, Equivalence<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) -
Uses of Ticker in com.google.common.testing
Subclasses of Ticker in com.google.common.testingModifier and TypeClassDescriptionclass
A Ticker whose value can be advanced programmatically in test.Methods in com.google.common.testing that return Ticker