Class OrderedExecutor.ContextPreservingCallable<T>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<T>
    Enclosing class:
    OrderedExecutor

    static class OrderedExecutor.ContextPreservingCallable<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>
    Decorator class for a callable that preserves MDC context.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextPreservingCallable​(java.util.concurrent.Callable<T> callable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T call()  
      • Methods inherited from class java.lang.Object

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

      • ContextPreservingCallable

        ContextPreservingCallable​(java.util.concurrent.Callable<T> callable)
    • Method Detail

      • call

        public T call()
               throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<T>
        Throws:
        java.lang.Exception