Class AdvancedProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      <A,​V>
      V
      compute​(ComputableTask<A,​V> task, A taskArgument)
      Waits if necessary for the computation to complete, and then retrieves its result.
      • Methods inherited from class java.lang.Object

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

      • AdvancedProcessor

        public AdvancedProcessor()
    • Method Detail

      • compute

        public <A,​V> V compute​(ComputableTask<A,​V> task,
                                     A taskArgument)
        Description copied from interface: Processor
        Waits if necessary for the computation to complete, and then retrieves its result.
        Specified by:
        compute in interface Processor
        taskArgument - argument for computation
      • clear

        public void clear()
        Specified by:
        clear in interface Clearable