This class provides an interface to a persistent cache. The persistence cache persists user writes, cached server data and the corresponding completeness tree. There exists one PersistentCache per repo.
| abstract void | |
| abstract void |
close()
|
| abstract void |
deleteTrackedQuery(long trackedQueryId)
|
| abstract void | |
| abstract List<TrackedQuery> | |
| abstract Set<ChildKey> |
loadTrackedQueryKeys(long trackedQueryId)
|
| abstract Set<ChildKey> | |
| abstract List<UserWriteRecord> |
loadUserWrites()
Return a list of all writes that were persisted
|
| abstract void |
mergeIntoServerCache(Path path, CompoundWrite children)
Update the server cache at the given path with the given children, merging each one into the
cache.
|
| abstract void |
mergeIntoServerCache(Path path, Node node)
Update the server cache at the given path with the given node, merging each child into the
cache.
|
| abstract void |
overwriteServerCache(Path path, Node node)
Overwrite the server cache at the given path with the given node.
|
| abstract void | |
| abstract void |
removeAllUserWrites()
Removes all user writes
|
| abstract void |
removeUserWrite(long writeId)
Remove a write with the given write id.
|
| abstract void |
resetPreviouslyActiveTrackedQueries(long lastUse)
|
| abstract void |
saveTrackedQuery(TrackedQuery trackedQuery)
|
| abstract void | |
| abstract void | |
| abstract void | |
| abstract Node | |
| abstract long | |
| abstract void | |
| abstract void |
| trackedQueryId |
|---|
| trackedQueryIds |
|---|
Return a list of all writes that were persisted
Update the server cache at the given path with the given children, merging each one into the cache.
| path | The path for this merge |
|---|---|
| children | The children to update |
Update the server cache at the given path with the given node, merging each child into the cache.
| path | The path to update |
|---|---|
| node | The node to merge into the cache. |
Overwrite the server cache at the given path with the given node.
| path | The path to update |
|---|---|
| node | The node to write to the cache. |
Removes all user writes
Remove a write with the given write id.
| writeId | The write id to remove |
|---|
| lastUse |
|---|
| trackedQueryId | |
|---|---|
| keys |
Save a user merge
| path | The path for this merge |
|---|---|
| children | The children for this merge |
| writeId | The write id that was used for this merge |
Save a user overwrite
| path | The path for this write |
|---|---|
| node | The node for this write |
| writeId | The write id that was used for this write |
Loads all data at a path. It has no knowledge of whether the data is "complete" or not.
| path | The path at which to load the node. |
|---|