| com.mchange.v2.async.AsynchronousRunner
All known Subclasses: com.mchange.v2.async.ThreadPerTaskAsynchronousRunner, com.mchange.v2.async.ThreadPoolAsynchronousRunner, com.mchange.v2.async.RoundRobinAsynchronousRunner,
Method Summary | |
public void | close(boolean skip_remaining_tasks) Finish with this AsynchronousRunner, and clean-up
any Threads or resources it may hold.
Parameters: skip_remaining_tasks - Should be regarded asa hint, not a guarantee. | public void | close() Clean-up resources held by this asynchronous runner
as soon as possible. | public void | postRunnable(Runnable r) |
close | public void close(boolean skip_remaining_tasks)(Code) | | Finish with this AsynchronousRunner, and clean-up
any Threads or resources it may hold.
Parameters: skip_remaining_tasks - Should be regarded asa hint, not a guarantee. If true, pending,not-yet-performed tasks will be skipped,if possible.Currently executing tasks may or may not be interrupted. If false, allpreviously scheduled tasks will be completed prior to clean-up. The methodreturns immediately regardless. |
close | public void close()(Code) | | Clean-up resources held by this asynchronous runner
as soon as possible. Remaining tasks are skipped if possible,
and any tasks executing when close() is called may
or may not be interrupted. Equivalent to close( true ).
|
|
|