|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TimeSource | |
|---|---|
| org.terracotta.cache | |
| org.terracotta.cache.serialization | |
| Uses of TimeSource in org.terracotta.cache |
|---|
| Classes in org.terracotta.cache that implement TimeSource | |
|---|---|
class |
SystemTimeSource
A TimeSource that uses System.currentTimeMillis(). |
| Methods in org.terracotta.cache that return TimeSource | |
|---|---|
TimeSource |
LocalCache.getTimeSource()
Return the time source used by this cache to generate entry timestamps. |
TimeSource |
TerracottaDistributedCache.getTimeSource()
Return the time source used by this cache to generate entry timestamps. |
| Methods in org.terracotta.cache with parameters of type TimeSource | |
|---|---|
void |
LocalCache.setTimeSource(TimeSource timeSource)
This is provided for testing purposes - it lets you override the source of System.currentTimeMillis() so that you can control it yourself in the test. |
void |
TerracottaDistributedCache.setTimeSource(TimeSource timeSource)
This is provided for testing purposes - it lets you override the source of System.currentTimeMillis() so that you can control it yourself in the test. |
| Uses of TimeSource in org.terracotta.cache.serialization |
|---|
| Constructors in org.terracotta.cache.serialization with parameters of type TimeSource | |
|---|---|
CustomLifespanSerializedEntry(T deserialized,
byte[] serialized,
int tti,
int ttl,
TimeSource timeSource)
Constructs a serialized entry with a custom lifespan and creation time. |
|
SerializedEntry(T deserialized,
byte[] serialized,
TimeSource timeSource)
Constructs a wrapper around the given entry, and it's serialized state. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||