Uses of Class
com.google.common.base.Ticker
-
Packages that use Ticker 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. -
-
Uses of Ticker in com.google.common.base
Fields in com.google.common.base declared as Ticker Modifier and Type Field Description private static Ticker
Ticker. SYSTEM_TICKER
private Ticker
Stopwatch. ticker
Methods in com.google.common.base that return Ticker Modifier and Type Method Description static Ticker
Ticker. systemTicker()
A ticker that reads the current time usingSystem.nanoTime()
.Methods in com.google.common.base with parameters of type Ticker Modifier and Type Method 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.Constructors in com.google.common.base with parameters of type Ticker Constructor Description Stopwatch(Ticker ticker)
-
Uses of Ticker in com.google.common.cache
Fields in com.google.common.cache declared as Ticker Modifier and Type Field Description (package private) static Ticker
CacheBuilder. NULL_TICKER
(package private) Ticker
CacheBuilder. ticker
(package private) Ticker
LocalCache.ManualSerializationProxy. ticker
(package private) Ticker
LocalCache. ticker
Measures time in a testable way.Methods in com.google.common.cache that return Ticker Modifier and Type Method Description (package private) Ticker
CacheBuilder. getTicker(boolean recordsTime)
Methods in com.google.common.cache with parameters of type Ticker Modifier and Type Method Description CacheBuilder<K,V>
CacheBuilder. ticker(Ticker ticker)
Specifies a nanosecond-precision time source for this cache.Constructors in com.google.common.cache with parameters of type Ticker Constructor 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)
-
Uses of Ticker in com.google.common.testing
Subclasses of Ticker in com.google.common.testing Modifier and Type Class Description class
FakeTicker
A Ticker whose value can be advanced programmatically in test.Methods in com.google.common.testing that return Ticker Modifier and Type Method Description private Ticker
FreshValueGenerator. generateTicker()
-