public interface HistoryCache<T>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this HistoryCache.
|
void |
coherentChangesBegin()
Calling this method starts a new coherent set.
|
void |
coherentChangesEnd()
Calling this method ends current coherent set.
|
void |
dispose(T sample,
long timestamp)
Dispose an instance represented by given sample
|
Instance<T> |
getInstance(KeyHash key)
Get an Instance represented by given Key
|
Set<Instance<T>> |
getInstances()
Gets instances of this HistoryCache.
|
LinkedList<Sample<T>> |
getSamplesSince(long seqNum)
Gets all the CacheChanges since given sequence number.
|
Instance<T> |
register(T sample,
long timestamp)
Registers an instance represented by given sample.
|
void |
unregister(T sample,
long timestamp)
Unregister an instance represented by given sample.
|
void |
write(T sample,
long timestamp)
Writes a Sample.
|
void coherentChangesBegin()
void coherentChangesEnd()
void dispose(T sample, long timestamp)
sample - Sample to disposetimestamp - timestamp of the disposalvoid unregister(T sample, long timestamp)
sample - Sample representing instance to unregistertimestamp - timestamp of unregistervoid write(T sample, long timestamp)
sample - Sample to writetimestamp - timestamp of the writeInstance<T> register(T sample, long timestamp)
sample - Sample of type Ttimestamp - timestampSet<Instance<T>> getInstances()
Instance<T> getInstance(KeyHash key)
key - KeyHash representing an instanceLinkedList<Sample<T>> getSamplesSince(long seqNum)
seqNum - sequence number to comparevoid close()
Copyright © 2016. All rights reserved.