public final class WorkflowExecutorCache
extends java.lang.Object
Constructor and Description |
---|
WorkflowExecutorCache(WorkflowServiceStubs service,
java.lang.String namespace,
int workflowCacheSize,
com.uber.m3.tally.Scope scope) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(java.lang.String runId,
WorkflowRunTaskHandler workflowRunTaskHandler) |
boolean |
evictAnyNotInProcessing(io.temporal.api.common.v1.WorkflowExecution execution,
com.uber.m3.tally.Scope metricsScope) |
WorkflowRunTaskHandler |
getOrCreate(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponseOrBuilder workflowTask,
com.uber.m3.tally.Scope metricsScope,
java.util.concurrent.Callable<WorkflowRunTaskHandler> workflowExecutorFn) |
void |
invalidateAll() |
long |
size() |
public WorkflowExecutorCache(WorkflowServiceStubs service, java.lang.String namespace, int workflowCacheSize, com.uber.m3.tally.Scope scope)
public WorkflowRunTaskHandler getOrCreate(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponseOrBuilder workflowTask, com.uber.m3.tally.Scope metricsScope, java.util.concurrent.Callable<WorkflowRunTaskHandler> workflowExecutorFn) throws java.lang.Exception
java.lang.Exception
public void addToCache(java.lang.String runId, WorkflowRunTaskHandler workflowRunTaskHandler)
public boolean evictAnyNotInProcessing(io.temporal.api.common.v1.WorkflowExecution execution, com.uber.m3.tally.Scope metricsScope)
public long size()
public void invalidateAll()