public class ActionGraphCache extends Object
Constructor and Description |
---|
ActionGraphCache(int maxEntries) |
Modifier and Type | Method and Description |
---|---|
ActionGraphAndBuilder |
getIfPresent(TargetGraph targetGraph) |
void |
invalidateCache() |
boolean |
isEmpty() |
void |
populateActionGraphBuilderWithCachedRules(BuckEventBus eventBus,
TargetGraph targetGraph,
ActionGraphBuilder graphBuilder) |
void |
put(TargetGraph targetGraph,
ActionGraphAndBuilder actionGraphAndBuilder) |
long |
size() |
public void invalidateCache()
@Nullable public ActionGraphAndBuilder getIfPresent(TargetGraph targetGraph)
public boolean isEmpty()
public long size()
public void put(TargetGraph targetGraph, ActionGraphAndBuilder actionGraphAndBuilder)
public void populateActionGraphBuilderWithCachedRules(BuckEventBus eventBus, TargetGraph targetGraph, ActionGraphBuilder graphBuilder)