Constructor and Description |
---|
AccumulatingRunnable() |
Modifier and Type | Method and Description |
---|---|
void |
add(T... args)
appends arguments and sends this for the execution if
needed.
|
void |
run() |
protected abstract void |
run(Deque<T> aArguments)
Equivalent to
Runnable.run method with the accumulated arguments to
process. |
public final void add(T... args)
This implementation uses submit()
to send this Runnable
for
execution.
args
- the arguments to accumulatepublic final void run()
This implementation calls run(List<T> args)
mehtod with the list of
accumulated arguments.
Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.