Class InMemoryExecutionContext

    • Constructor Detail

      • InMemoryExecutionContext

        public InMemoryExecutionContext()
      • InMemoryExecutionContext

        public InMemoryExecutionContext​(java.util.function.Consumer<java.lang.Throwable> onError)
      • InMemoryExecutionContext

        public InMemoryExecutionContext​(java.util.function.Consumer<java.lang.Throwable> onError,
                                        java.util.function.Function<java.lang.Integer,​java.time.Duration> runTimeout)
      • InMemoryExecutionContext

        public InMemoryExecutionContext​(java.util.function.Consumer<java.lang.Throwable> onError,
                                        java.util.function.Function<java.lang.Integer,​java.time.Duration> runTimeout,
                                        java.util.function.BiConsumer<java.lang.Throwable,​ExecutionContext> onTimeout)
    • Method Detail

      • 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.