Class RunnableAdapter<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.concurrent.Callable<T>

    public final class RunnableAdapter<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>, java.io.Serializable
    Runnable adapter for distributed executor service Any RunnableAdapter refactoring might break CDI
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T result  
      protected java.lang.Runnable task  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RunnableAdapter()  
      protected RunnableAdapter​(java.lang.Runnable task, T result)  
    • Method Summary

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

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

      • task

        protected java.lang.Runnable task
      • result

        protected T result
    • Constructor Detail

      • RunnableAdapter

        protected RunnableAdapter()
      • RunnableAdapter

        protected RunnableAdapter​(java.lang.Runnable task,
                                  T result)
    • Method Detail

      • getTask

        public java.lang.Runnable getTask()
      • call

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