public final class DeciderCache
extends java.lang.Object
Constructor and Description |
---|
DeciderCache(int maxCacheSize,
com.uber.m3.tally.Scope scope) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(PollForDecisionTaskResponse decisionTask,
Decider decider) |
boolean |
evictAnyNotInProcessing(java.lang.String runId) |
Decider |
getOrCreate(PollForDecisionTaskResponse decisionTask,
java.util.concurrent.Callable<Decider> deciderFunc) |
void |
invalidateAll() |
long |
size() |
public DeciderCache(int maxCacheSize, com.uber.m3.tally.Scope scope)
public Decider getOrCreate(PollForDecisionTaskResponse decisionTask, java.util.concurrent.Callable<Decider> deciderFunc) throws java.lang.Exception
java.lang.Exception
public void addToCache(PollForDecisionTaskResponse decisionTask, Decider decider)
public boolean evictAnyNotInProcessing(java.lang.String runId)
public long size()
public void invalidateAll()