TikaConfig { public ExecutorService getExecutorService() { return executorService; } TikaConfig(String file);  TikaConfig(Path path);  TikaConfig(Path path, ServiceLoader loader);  TikaConfig(File file);  TikaConfig(File file, ServiceLoader loader);  TikaConfig(URL url);  TikaConfig(URL url, ClassLoader loader);  TikaConfig(URL url, ServiceLoader loader);  TikaConfig(InputStream stream);  TikaConfig(Document document);  TikaConfig(Document document, ServiceLoader loader);  TikaConfig(Element element);  TikaConfig(Element element, ClassLoader loader); private  TikaConfig(Element element, ServiceLoader loader);  TikaConfig(ClassLoader loader);  TikaConfig(); Parser getParser(MediaType mimeType); Parser getParser(); Detector getDetector(); EncodingDetector getEncodingDetector(); Translator getTranslator(); ExecutorService getExecutorService(); MimeTypes getMimeRepository(); MediaTypeRegistry getMediaTypeRegistry(); ServiceLoader getServiceLoader(); MetadataFilter getMetadataFilter(); static TikaConfig getDefaultConfig();  }
@Test public void testTikaExecutorServiceFromConfig() throws Exception { URL url = TikaConfigTest.class.getResource("TIKA-1762-executors.xml"); TikaConfig config = new TikaConfig(url); ThreadPoolExecutor executorService = (ThreadPoolExecutor)config.getExecutorService(); assertTrue("Should use Dummy Executor", (executorService instanceof DummyExecutor)); assertEquals("Should have configured Core Threads", 3, executorService.getCorePoolSize()); assertEquals("Should have configured Max Threads", 10, executorService.getMaximumPoolSize()); }