Class AbstractProcessor.Context

    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(java.util.Map<java.lang.String,​java.lang.String> mdcContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()
      Sets the canceled flag.
      java.util.Map<java.lang.String,​java.lang.String> getMDCContext()  
      ExecutionStats getStats()  
      <T> T mdcContext​(java.util.function.Supplier<T> action)
      Set the MDC context while running the action.
      <T> T mdcContextEx​(java.util.concurrent.Callable<T> action)
      Set the MDC context while running the action.
      void stopIfCanceled()
      Throws a CancellationException if the job was canceled.
      • Methods inherited from class java.lang.Object

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

      • Context

        public Context​(@Nonnull
                       java.util.Map<java.lang.String,​java.lang.String> mdcContext)
        Parameters:
        mdcContext - The MDC context.