Class IsolatedExecutor<T,​R>


  • public final class IsolatedExecutor<T,​R>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IsolatedExecutor​(java.util.function.Function<T,​R> inputProcessor, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R execute​(T task)  
      java.lang.Thread getThread()  
      void start()  
      • Methods inherited from class java.lang.Object

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

      • IsolatedExecutor

        public IsolatedExecutor​(java.util.function.Function<T,​R> inputProcessor,
                                java.lang.String name)
    • Method Detail

      • getThread

        public java.lang.Thread getThread()
      • start

        public void start()
      • execute

        public R execute​(T task)
                  throws java.lang.Throwable
        Throws:
        java.lang.Throwable