|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.samskivert.util.LoopingThread
com.threerings.miso.client.SceneBlockResolver
public class SceneBlockResolver
A separate thread for resolving miso scene blocks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected Histogram |
_histo
Used to time block loading. |
protected Queue<SceneBlock> |
_queue
The invoker's queue of units to be executed. |
protected boolean |
_resolving
Indicates whether or not we are resolving or suspended. |
protected static long |
LONG_RESOLVE_TIME
Blocks shouldn't take too long to resolve. |
| Fields inherited from class com.samskivert.util.LoopingThread |
|---|
_running |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
SceneBlockResolver()
|
|
| Method Summary | |
|---|---|
void |
iterate()
|
int |
queueSize()
Returns the number of scene blocks on the resolution queue. |
void |
resolveBlock(SceneBlock block,
boolean hipri)
Queues up a scene block for resolution. |
void |
restoreResolution()
Restores the operation of the scene block resolution thread after a previous call to suspendResolution(). |
void |
suspendResolution()
Temporarily suspends the scene block resolution thread. |
| Methods inherited from class com.samskivert.util.LoopingThread |
|---|
didShutdown, handleIterateFailure, isRunning, kick, run, shutdown, willStart |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Queue<SceneBlock> _queue
protected boolean _resolving
protected Histogram _histo
protected static final long LONG_RESOLVE_TIME
| Constructor Detail |
|---|
public SceneBlockResolver()
| Method Detail |
|---|
public void resolveBlock(SceneBlock block,
boolean hipri)
public void suspendResolution()
public void restoreResolution()
suspendResolution().
public int queueSize()
public void iterate()
iterate in class LoopingThread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||