Package generic.concurrent
Interface QCallback<I,R>
- 
- Type Parameters:
- I- The type of the items to be processed.
- R- The type of objects resulting from processing an item; if you don't care about the return value, then make this value whatever you want, like Object or the same value as- QCallbackand return null from- process(Object, TaskMonitor).
 - All Known Implementing Classes:
- DecompilerCallback,- QRunnableAdapter
 
 public interface QCallback<I,R>Interface that defines the callback to work on the items given to theConcurrentQ#add(I)methods. Each item that is processed will be handed to the#process(I, TaskMonitor)method of the implementing class.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Rprocess(I item, TaskMonitor monitor)Processes the given item in background thread provided by a GThreadPool.
 
- 
- 
- 
Method Detail- 
processR process(I item, TaskMonitor monitor) throws java.lang.Exception 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.
- Returns:
- The return value resulting from processing the item.
- Throws:
- java.lang.Exception
 
 
- 
 
-