Class FutureCallable<V>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<V>

    public class FutureCallable<V>
    extends java.lang.Object
    implements java.util.concurrent.Callable<V>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.Future<V> future  
    • Constructor Summary

      Constructors 
      Constructor Description
      FutureCallable​(java.util.concurrent.Future<V> future)  
    • Method Summary

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

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

      • future

        private final java.util.concurrent.Future<V> future
    • Constructor Detail

      • FutureCallable

        public FutureCallable​(java.util.concurrent.Future<V> future)
    • Method Detail

      • call

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