public final class DeciderCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DeciderCache.EvictedException |
Constructor and Description |
---|
DeciderCache(int maxCacheSize,
com.uber.m3.tally.Scope scope) |
Modifier and Type | Method and Description |
---|---|
void |
evictAny(java.lang.String runId) |
Decider |
getOrCreate(PollForDecisionTaskResponse decisionTask,
ThrowableFunc1<PollForDecisionTaskResponse,Decider,java.lang.Exception> createReplayDecider) |
void |
invalidate(PollForDecisionTaskResponse decisionTask) |
void |
invalidateAll() |
long |
size() |
public DeciderCache(int maxCacheSize, com.uber.m3.tally.Scope scope)
public Decider getOrCreate(PollForDecisionTaskResponse decisionTask, ThrowableFunc1<PollForDecisionTaskResponse,Decider,java.lang.Exception> createReplayDecider) throws java.lang.Exception
java.lang.Exception
public void evictAny(java.lang.String runId) throws java.lang.InterruptedException
java.lang.InterruptedException
public void invalidate(PollForDecisionTaskResponse decisionTask) throws java.lang.InterruptedException
java.lang.InterruptedException
public long size()
public void invalidateAll()