public abstract class ConcurrentEnvironment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConcurrentEnvironment.Priority |
static class |
ConcurrentEnvironment.Strategy |
| Constructor and Description |
|---|
ConcurrentEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTimeouts(double max) |
boolean |
destroy(int timeout) |
boolean |
flush(int timeout) |
abstract Iterable<Runnable> |
getDeferred() |
abstract Iterable<Runnable> |
getFinally() |
abstract Iterable<Thread> |
getThreads() |
boolean |
hasDefers() |
boolean |
hasFinalies() |
boolean |
isEmpty() |
void |
monitor(ConcurrentEnvironment.Priority priority,
javax.inject.Provider<Boolean> gate,
Runnable job) |
abstract void |
pushDeferred(Runnable cmd) |
abstract void |
pushEventually(Runnable cmd) |
abstract void |
pushFinally(Runnable cmd) |
abstract void |
pushThread(Thread childThread) |
protected void |
runFinalies(double max) |
void |
scheduleFlush(int timeout) |
double |
startTime() |
public void monitor(ConcurrentEnvironment.Priority priority, javax.inject.Provider<Boolean> gate, Runnable job)
public boolean hasFinalies()
public boolean hasDefers()
public boolean isEmpty()
public boolean flush(int timeout)
protected void checkTimeouts(double max)
throws TimeoutException
TimeoutExceptionprotected void runFinalies(double max)
throws TimeoutException
TimeoutExceptionpublic void scheduleFlush(int timeout)
public boolean destroy(int timeout)
public double startTime()
public abstract void pushDeferred(Runnable cmd)
public abstract void pushEventually(Runnable cmd)
public abstract void pushFinally(Runnable cmd)
public abstract void pushThread(Thread childThread)
Copyright © December 07, 2012-2014 The Internet Party. All Rights Reserved.