@SingletonDefault(implFor=ConcurrencyService.class) public class ConcurrencyServiceJre extends ConcurrencyServiceAbstract
| Modifier and Type | Class and Description |
|---|---|
protected class |
ConcurrencyServiceJre.JreConcurrentEnvironment |
ConcurrencyServiceAbstract.EnviroMap, ConcurrencyServiceAbstract.WrappedRunnable| Constructor and Description |
|---|
ConcurrencyServiceJre() |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentEnvironment |
initializeEnvironment(Thread key,
Thread.UncaughtExceptionHandler params) |
boolean |
isMultiThreaded() |
protected int |
maxThreads() |
AsyncLock |
newLock() |
void |
runTimeout(Runnable cmd,
int millisToWait)
Wait (at least) a given number of milliseconds to perform a task.
|
callback, currentEnvironment, flush, getFuturesThread, initMap, kill, newProcess, newThread, now, resolve, runDeferred, runEventually, runFinally, threadFlushTime, threadStartTime, trySleep, wrappublic ConcurrentEnvironment initializeEnvironment(Thread key, Thread.UncaughtExceptionHandler params)
initializeEnvironment in class ConcurrencyServiceAbstractprotected int maxThreads()
public boolean isMultiThreaded()
isMultiThreaded in class ConcurrencyServiceAbstractpublic void runTimeout(Runnable cmd, int millisToWait)
ConcurrencyServicecmd - - The command to run.millisToWait - - A minimum of milliseconds to wait.public AsyncLock newLock()
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.