org.knime.core.util
Class MultiThreadWorker.ComputationTask

java.lang.Object
  extended by java.util.concurrent.FutureTask<Out>
      extended by org.knime.core.util.MultiThreadWorker.ComputationTask
All Implemented Interfaces:
Runnable, Future<Out>, RunnableFuture<Out>
Enclosing class:
MultiThreadWorker<In,Out>

public final class MultiThreadWorker.ComputationTask
extends FutureTask<Out>

Represents a single computation, consists of corresponding input record, input index and the computed output. The output is to be retrieved using the FutureTask.get() method.


Method Summary
protected  void done()
          
 long getIndex()
           
 In getInput()
           
 
Methods inherited from class java.util.concurrent.FutureTask
cancel, get, get, isCancelled, isDone, run, runAndReset, set, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInput

public In getInput()
Returns:
the input

getIndex

public long getIndex()
Returns:
the index

done

protected void done()

Overrides:
done in class FutureTask<Out>


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.