|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.util.Invoker.Unit
com.threerings.presents.server.PresentsInvoker.EmptyingUnit
protected class PresentsInvoker.EmptyingUnit
This gets posted to this invoker over and over again until it, any interdependent invokers and the DObjectManager are all empty.
| Field Summary | |
|---|---|
protected int |
_loopCount
How many times we've looped on the thread we're currently on. |
protected Runnable |
_onEmpty
The runnable to execute when all associated queues are empty or we've given up. |
protected int |
_passCount
The number of times we've been passed to the object manager. |
protected static long |
CHECK_TIMEOUT
|
protected static int |
MAX_LOOPS
The maximum number of loops we allow before just ending things. |
protected static int |
MAX_PASSES
The maximum number of passes we allow before just ending things. |
| Fields inherited from class com.samskivert.util.Invoker.Unit |
|---|
_name, queueStamp |
| Constructor Summary | |
|---|---|
PresentsInvoker.EmptyingUnit(Runnable onEmpty)
|
|
| Method Summary | |
|---|---|
long |
getLongThreshold()
|
boolean |
invoke()
|
protected void |
releaseCheckers(List<PresentsInvoker.BlockingUnit> checkers)
|
| Methods inherited from class com.samskivert.util.Invoker.Unit |
|---|
getDetail, handleResult, run, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Runnable _onEmpty
protected int _passCount
protected int _loopCount
protected static final int MAX_PASSES
protected static final int MAX_LOOPS
protected static final long CHECK_TIMEOUT
| Constructor Detail |
|---|
public PresentsInvoker.EmptyingUnit(Runnable onEmpty)
| Method Detail |
|---|
public boolean invoke()
invoke in class Invoker.Unitpublic long getLongThreshold()
getLongThreshold in class Invoker.Unitprotected void releaseCheckers(List<PresentsInvoker.BlockingUnit> checkers)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||