Package generic.concurrent
Interface QRunnable<I>
- Type Parameters:
I
- The type of the items to be processed.
public interface QRunnable<I>
Interface that defines the Runnable to work on the items given to the
ConcurrentQ.add(I)
methods. Each item that is processed will be handed to the
run(I, TaskMonitor)
method of the implementing class.-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(I item, TaskMonitor monitor) Processes the given item in background thread provided by a GThreadPool.
-
Method Details
-
run
Processes the given item in background thread provided by a GThreadPool.- Parameters:
item
- the item to process.monitor
- a monitor that can be used to check for cancellation and to report progress and transient messages.- Throws:
Exception
-