public class TrackedQueryManager extends Object

Public Constructor Summary

Public Method Summary

long
void
TrackedQuery
Set<ChildKey>
getKnownCompleteChildren(Path path)
Uses our tracked queries to figure out what complete children we have.
boolean
boolean
PruneForest
void
void
void
void
void

Inherited Method Summary

Public Constructors

public TrackedQueryManager (PersistenceStorageEngine storageLayer, LogWrapper logger, Clock clock)

Parameters
storageLayer
logger
clock

Public Methods

public long countOfPrunableQueries ()

public void ensureCompleteTrackedQuery (Path path)

Parameters
path

public TrackedQuery findTrackedQuery (QuerySpec query)

Parameters
query

public Set<ChildKey> getKnownCompleteChildren (Path path)

Uses our tracked queries to figure out what complete children we have.

Parameters
path Path to find complete data children under.
Returns
  • Set of complete ChildKeys

public boolean hasActiveDefaultQuery (Path path)

Parameters
path

public boolean isQueryComplete (QuerySpec query)

Parameters
query

public PruneForest pruneOldQueries (CachePolicy cachePolicy)

Parameters
cachePolicy

public void removeTrackedQuery (QuerySpec query)

Parameters
query

public void setQueriesComplete (Path path)

Parameters
path

public void setQueryActive (QuerySpec query)

Parameters
query

public void setQueryCompleteIfExists (QuerySpec query)

Parameters
query

public void setQueryInactive (QuerySpec query)

Parameters
query