Class ConcurrentUtils


  • public class ConcurrentUtils
    extends java.lang.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 java.util.concurrent.Future execute​(ParseContext context, java.lang.Runnable runnable)
      Execute a runnable using an ExecutorService from the ParseContext if possible.
      • Methods inherited from class java.lang.Object

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

      • ConcurrentUtils

        public ConcurrentUtils()
    • Method Detail

      • execute

        public static java.util.concurrent.Future execute​(ParseContext context,
                                                          java.lang.Runnable runnable)
        Execute a runnable using an ExecutorService from the ParseContext if possible. Otherwise fallback to individual threads.
        Parameters:
        context -
        runnable -
        Returns: