Class WatchableExecutionContext

    • Constructor Detail

      • WatchableExecutionContext

        public WatchableExecutionContext()
    • Method Detail

      • hasNewMessages

        public boolean hasNewMessages()
      • resetHasNewMessages

        public void resetHasNewMessages()
      • putMessage

        public void putMessage​(java.lang.String key,
                               java.lang.Object value)
        Specified by:
        putMessage in interface ExecutionContext
      • getOnError

        public java.util.function.Consumer<java.lang.Throwable> getOnError()
        Specified by:
        getOnError in interface ExecutionContext
      • getRunTimeout

        public java.time.Duration getRunTimeout​(int inputs)
        Specified by:
        getRunTimeout in interface ExecutionContext
        Parameters:
        inputs - The number of inputs to the run. Allows the duration to be scaled to the number of inputs.
        Returns:
        The maximum duration a run (e.g. parse operation, recipe run) can take.