|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mchange.v2.async.CarefulRunnableQueue
public class CarefulRunnableQueue
| Constructor Summary | |
|---|---|
CarefulRunnableQueue(boolean daemon,
boolean shutdown_on_interrupt)
|
|
| Method Summary | |
|---|---|
RunnableQueue |
asRunnableQueue()
|
void |
close()
forces the release of any resources that might be associated with this object. |
void |
close(boolean skip_remaining_tasks)
Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold. |
java.util.List |
getStrandedTasks()
makes available any tasks that were unperformed when this AsynchronousRunner was closed, either explicitly using close() or close( true ), or implicitly because some failure or corruption killed the Object (most likely a Thread interruption. |
void |
postRunnable(java.lang.Runnable r)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CarefulRunnableQueue(boolean daemon,
boolean shutdown_on_interrupt)
| Method Detail |
|---|
public RunnableQueue asRunnableQueue()
asRunnableQueue in interface Queuablepublic void postRunnable(java.lang.Runnable r)
postRunnable in interface AsynchronousRunnerpublic void close(boolean skip_remaining_tasks)
AsynchronousRunner
close in interface AsynchronousRunnerskip_remaining_tasks - Should be regarded as
a 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, all
previously scheduled tasks will be
completed prior to clean-up. The method
returns immediately regardless.public void close()
ClosableResource
close in interface ClosableResourceclose in interface AsynchronousRunnerpublic java.util.List getStrandedTasks()
StrandedTaskReporting
getStrandedTasks in interface StrandedTaskReporting
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||