Class QRunnableAdapter<I>

  • All Implemented Interfaces:
    QCallback<I,​java.lang.Object>

    public class QRunnableAdapter<I>
    extends java.lang.Object
    implements QCallback<I,​java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object process​(I item, TaskMonitor monitor)
      Processes the given item in background thread provided by a GThreadPool.
      • Methods inherited from class java.lang.Object

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

      • QRunnableAdapter

        public QRunnableAdapter​(QRunnable<I> runnable)
    • Method Detail

      • process

        public java.lang.Object process​(I item,
                                        TaskMonitor monitor)
                                 throws java.lang.Exception
        Description copied from interface: QCallback
        Processes the given item in background thread provided by a GThreadPool.
        Specified by:
        process in interface QCallback<I,​java.lang.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:
        java.lang.Exception