/** * Creates a {@link ConcurrentExecutor} with the given name (used as a * prefix for creating thread), and the timeout of 1 second for running * threads. If a thread did not process a job within the given timeout, the * thread is terminated. * * @param name * @return the {@link ConcurrentExecutor} associated with the given * parameters */ public static ConcurrentExecutor create(String name) { return create(name, 1L, TimeUnit.SECONDS); }
/** * Creates a {@link ConcurrentExecutor} with the given name (used as a * prefix for creating thread), and the timeout of 1 second for running * threads. If a thread did not process a job within the given timeout, the * thread is terminated. * * @param name * @return the {@link ConcurrentExecutor} associated with the given * parameters */ public static ConcurrentExecutor create(String name) { return create(name, 1L, TimeUnit.SECONDS); }
/** * Creates a {@link ConcurrentExecutor} with the given name (used as a * prefix for creating thread), and the timeout of 1 second for running * threads. If a thread did not process a job within the given timeout, the * thread is terminated. * * @param name * @return the {@link ConcurrentExecutor} associated with the given * parameters */ public static ConcurrentExecutor create(String name) { return create(name, 1L, TimeUnit.SECONDS); }
ConcurrentExecutor executor = ConcurrentExecutors.create("test", 1, TimeUnit.NANOSECONDS); final ElkAxiomProcessor inserter = new ChangeIndexingProcessor(
DummyInterruptMonitor.INSTANCE, Producer.Dummy.get(), PropertyHierarchyCompositionState.Dispatcher.DUMMY), ConcurrentExecutors.create("test-hierarchy-compositions"), maxThreads, new DummyProgressMonitor());
ConcurrentExecutor executor = ConcurrentExecutors.create("test", 1, TimeUnit.NANOSECONDS);