/** * Creates a {@link ConcurrentExecutor} with the given name (used as a * prefix for creating thread), and given timeout for running threads. If a * thread did not process a job within the given timeout, the thread is * terminated. * * @param name * @param timeout * @param unit * @return the {@link ConcurrentExecutor} associated with the given * parameters */ public static ConcurrentExecutor create(String name, long timeout, TimeUnit unit) { return new ConcurrentExecutorImpl(name, timeout, unit); }
/** * Creates a {@link ConcurrentExecutor} with the given name (used as a * prefix for creating thread), and given timeout for running threads. If a * thread did not process a job within the given timeout, the thread is * terminated. * * @param name * @param timeout * @param unit * @return the {@link ConcurrentExecutor} associated with the given * parameters */ public static ConcurrentExecutor create(String name, long timeout, TimeUnit unit) { return new ConcurrentExecutorImpl(name, timeout, unit); }
/** * Creates a {@link ConcurrentExecutor} with the given name (used as a * prefix for creating thread), and given timeout for running threads. If a * thread did not process a job within the given timeout, the thread is * terminated. * * @param name * @param timeout * @param unit * @return the {@link ConcurrentExecutor} associated with the given * parameters */ public static ConcurrentExecutor create(String name, long timeout, TimeUnit unit) { return new ConcurrentExecutorImpl(name, timeout, unit); }