public abstract class ThreadPools extends Object
| Modifier and Type | Field and Description |
|---|---|
static ExecutorService |
filterExecutor
Generic Thread Pools which can be used by 'filters'.
|
static ThreadPoolExecutor |
jobsExecutor
All kind of jobs that should happen in a seperate Thread can be
executed by this executor.
|
(package private) static UtilReader |
properties |
static ScheduledThreadPoolExecutor |
scheduler
This executor is for repeating tasks.
|
static ThreadGroup |
threadGroup |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
configure() |
static String |
getString(Future r)
returns a identifier string for the given task.
|
static Map<String,ExecutorService> |
getThreadPools() |
static String |
identify(Future r,
String s)
There is no way to identify the FutureTask objects returned in
the getQueue methods of the executors.
|
static Thread |
newThread(Runnable r,
String id) |
static ScheduledFuture |
scheduleAtFixedRate(Runnable pub,
int time1,
int time2)
Deprecated.
Used ThreadPools.scheduler#scheduleAtFixedRate This method is only provided to
use this in both 1.8 (concurrecy backport) and 1.9 (java 1.5).
|
protected static void |
setProperty(ThreadPoolExecutor object,
String key,
String value) |
static void |
shutdown() |
public static final ThreadGroup threadGroup
public static final ExecutorService filterExecutor
ChainedCharTransformer (and only
when transforming a Reader).
Code performing a similar task could also use this thread pool.public static final ThreadPoolExecutor jobsExecutor
public static final ScheduledThreadPoolExecutor scheduler
Module has a Module.maintainance() which is scheduled to
run every hour.static final UtilReader properties
public static String identify(Future r, String s)
public static ScheduledFuture scheduleAtFixedRate(Runnable pub, int time1, int time2)
public static String getString(Future r)
public static Map<String,ExecutorService> getThreadPools()
protected static void setProperty(ThreadPoolExecutor object, String key, String value)
static void configure()
public static void shutdown()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}