public class ConcurrentExecutors extends Object
ConcurrentExecutors| Constructor and Description |
|---|
ConcurrentExecutors() |
| Modifier and Type | Method and Description |
|---|---|
static ConcurrentExecutor |
create(String name)
Creates a
ConcurrentExecutor with the given name (used as a
prefix for creating thread), and the timeout of 1 second for running
threads. |
static ConcurrentExecutor |
create(String name,
long timeout,
TimeUnit unit)
Creates a
ConcurrentExecutor with the given name (used as a
prefix for creating thread), and given timeout for running threads. |
static ConcurrentExecutor |
getDefault() |
public static ConcurrentExecutor create(String name, long timeout, TimeUnit unit)
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.name - the name of the ConcurrentExecutortimeout - the termination timeout for running threadsunit - the TimeUnit in which the timeout is measuredConcurrentExecutor associated with the given
parameterspublic static ConcurrentExecutor create(String name)
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.name - the name of the created ConcurrentExecutorConcurrentExecutor associated with the given
parameterspublic static ConcurrentExecutor getDefault()
ConcurrentExecutor with the timeout of 1
second for running threads.Copyright © 2011–2024 Live Ontologies Project. All rights reserved.