Package org.apache.tika.utils
Class ConcurrentUtils
- java.lang.Object
 - 
- org.apache.tika.utils.ConcurrentUtils
 
 
- 
public class ConcurrentUtils extends Object
Utility Class for Concurrency in Tika- Since:
 - Apache Tika 1.11
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ConcurrentUtils() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Futureexecute(ParseContext context, Runnable runnable)Execute a runnable using an ExecutorService from the ParseContext if possible. 
 - 
 
- 
- 
Method Detail
- 
execute
public static Future execute(ParseContext context, Runnable runnable)
Execute a runnable using an ExecutorService from the ParseContext if possible. Otherwise fallback to individual threads.- Parameters:
 context-runnable-- Returns:
 
 
 - 
 
 -