Class WorkflowExecutorCache


  • public final class WorkflowExecutorCache
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkflowExecutorCache​(int workflowCacheSize, com.uber.m3.tally.Scope scope)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addToCache​(io.temporal.api.common.v1.WorkflowExecution workflowExecution, WorkflowRunTaskHandler workflowRunTaskHandler)  
      boolean evictAnyNotInProcessing​(io.temporal.api.common.v1.WorkflowExecution inFavorOfExecution, 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 invalidate​(io.temporal.api.common.v1.WorkflowExecution execution, com.uber.m3.tally.Scope metricsScope, java.lang.String reason, java.lang.Throwable cause)  
      void invalidateAll()  
      long size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowExecutorCache

        public WorkflowExecutorCache​(int workflowCacheSize,
                                     com.uber.m3.tally.Scope scope)
    • Method Detail

      • getOrCreate

        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
        Throws:
        java.lang.Exception
      • addToCache

        public void addToCache​(io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                               WorkflowRunTaskHandler workflowRunTaskHandler)
      • evictAnyNotInProcessing

        public boolean evictAnyNotInProcessing​(io.temporal.api.common.v1.WorkflowExecution inFavorOfExecution,
                                               com.uber.m3.tally.Scope metricsScope)
      • invalidate

        public void invalidate​(io.temporal.api.common.v1.WorkflowExecution execution,
                               com.uber.m3.tally.Scope metricsScope,
                               java.lang.String reason,
                               java.lang.Throwable cause)
      • size

        public long size()
      • invalidateAll

        public void invalidateAll()