Class ManagedExecutors.CallableAdapter<V>

  • All Implemented Interfaces:
    ManagedTask, java.util.concurrent.Callable<V>
    Enclosing class:
    ManagedExecutors

    static final class ManagedExecutors.CallableAdapter<V>
    extends ManagedExecutors.Adapter
    implements java.util.concurrent.Callable<V>
    Adapter for Callable to include ManagedTask interface methods.
    • Field Detail

      • task

        private final java.util.concurrent.Callable<V> task
    • Constructor Detail

      • CallableAdapter

        public CallableAdapter​(java.util.concurrent.Callable<V> task,
                               java.util.Map<java.lang.String,​java.lang.String> executionProperties,
                               ManagedTaskListener taskListener)
    • Method Detail

      • call

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