Package com.mchange.v2.async
Class SimpleRunnableQueue
- java.lang.Object
-
- com.mchange.v2.async.SimpleRunnableQueue
-
- All Implemented Interfaces:
ClosableResource,AsynchronousRunner,Queuable,RunnableQueue
public class SimpleRunnableQueue extends java.lang.Object implements RunnableQueue, Queuable
Deprecated.CarefulRunnableQueue is better.
-
-
Constructor Summary
Constructors Constructor Description SimpleRunnableQueue()Deprecated.SimpleRunnableQueue(boolean daemon)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RunnableQueueasRunnableQueue()Deprecated.voidclose()Deprecated.Clean-up resources held by this asynchronous runner as soon as possible.voidclose(boolean skip_remaining_tasks)Deprecated.Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.voidpostRunnable(java.lang.Runnable r)Deprecated.
-
-
-
Method Detail
-
asRunnableQueue
public RunnableQueue asRunnableQueue()
Deprecated.- Specified by:
asRunnableQueuein interfaceQueuable
-
postRunnable
public void postRunnable(java.lang.Runnable r)
Deprecated.- Specified by:
postRunnablein interfaceAsynchronousRunner
-
close
public void close(boolean skip_remaining_tasks)
Deprecated.Description copied from interface:AsynchronousRunnerFinish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.- Specified by:
closein interfaceAsynchronousRunner- Parameters:
skip_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.
-
close
public void close()
Deprecated.Description copied from interface:AsynchronousRunnerClean-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 ).- Specified by:
closein interfaceAsynchronousRunner- Specified by:
closein interfaceClosableResource
-
-