|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRunBuffer
@ThreadRestricted(value="AWT event dispatch") public final class RunBuffer
A buffer for delayed and coalesced invocation of runnables. Use as a damper against rapid-fire events etc.
Constructor Summary | |
---|---|
RunBuffer(int interInvocationMilliseconds)
Creates a RunBuffer. |
Method Summary | |
---|---|
int |
delayMillisecondsMinimum()
Returns the minimum delay in milliseconds. |
void |
schedule(Runnable runnable)
Ensures the run is scheduled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunBuffer(int interInvocationMilliseconds)
interInvocationMilliseconds
- delay between invocations of buffered runnablesMethod Detail |
---|
public int delayMillisecondsMinimum()
RunDelayer
delayMillisecondsMinimum
in interface RunDelayer
public void schedule(Runnable runnable)
All runs will execute on the AWT event dispatch thread.
schedule
in interface RunDelayer
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |