Class QRunnableAdapter<I>

java.lang.Object
generic.concurrent.QRunnableAdapter<I>
All Implemented Interfaces:
QCallback<I,Object>

public class QRunnableAdapter<I> extends Object implements QCallback<I,Object>
  • Constructor Details

    • QRunnableAdapter

      public QRunnableAdapter(QRunnable<I> runnable)
  • Method Details

    • process

      public Object process(I item, TaskMonitor monitor) throws Exception
      Description copied from interface: QCallback
      Processes the given item in background thread provided by a GThreadPool.
      Specified by:
      process in interface QCallback<I,Object>
      Parameters:
      item - the item to process.
      monitor - a monitor that can be used to check for cancellation and to report progress and transient messages.
      Returns:
      The return value resulting from processing the item.
      Throws:
      Exception