final class QuantumRenderer
extends java.util.concurrent.ThreadPoolExecutor
Modifier and Type | Class and Description |
---|---|
private class |
QuantumRenderer.PipelineRunnable |
private class |
QuantumRenderer.QuantumThreadFactory |
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
_initThrowable |
private java.lang.Thread |
_renderer |
private java.util.concurrent.CountDownLatch |
initLatch |
private static java.util.concurrent.atomic.AtomicReference<QuantumRenderer> |
instanceReference |
private static boolean |
usePurgatory |
Modifier | Constructor and Description |
---|---|
private |
QuantumRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t) |
(package private) void |
checkRendererIdle() |
protected void |
createResourceFactory() |
protected void |
disposePresentable(Presentable presentable) |
static QuantumRenderer |
getInstance() |
protected java.lang.Throwable |
initThrowable() |
protected <T> java.util.concurrent.RunnableFuture<T> |
newTaskFor(java.lang.Runnable runnable,
T value) |
private void |
setInitThrowable(java.lang.Throwable th) |
protected void |
stopRenderer() |
protected java.util.concurrent.Future |
submitRenderJob(RenderJob r) |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toString
private static boolean usePurgatory
private static final java.util.concurrent.atomic.AtomicReference<QuantumRenderer> instanceReference
private java.lang.Thread _renderer
private java.lang.Throwable _initThrowable
private java.util.concurrent.CountDownLatch initLatch
protected java.lang.Throwable initThrowable()
private void setInitThrowable(java.lang.Throwable th)
protected void createResourceFactory()
protected void disposePresentable(Presentable presentable)
protected void stopRenderer()
protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.lang.Runnable runnable, T value)
newTaskFor
in class java.util.concurrent.AbstractExecutorService
protected java.util.concurrent.Future submitRenderJob(RenderJob r)
public void afterExecute(java.lang.Runnable r, java.lang.Throwable t)
afterExecute
in class java.util.concurrent.ThreadPoolExecutor
void checkRendererIdle()
public static QuantumRenderer getInstance()