com.mchange.v2.async
Class SimpleRunnableQueue

java.lang.Object
  extended by com.mchange.v2.async.SimpleRunnableQueue
All Implemented Interfaces:
ClosableResource, AsynchronousRunner, Queuable, RunnableQueue

Deprecated. CarefulRunnableQueue is better.

public class SimpleRunnableQueue
extends Object
implements RunnableQueue, Queuable


Constructor Summary
SimpleRunnableQueue()
          Deprecated.  
SimpleRunnableQueue(boolean daemon)
          Deprecated.  
 
Method Summary
 RunnableQueue asRunnableQueue()
          Deprecated.  
 void close()
          Deprecated. Clean-up resources held by this asynchronous runner as soon as possible.
 void close(boolean skip_remaining_tasks)
          Deprecated. Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.
 void postRunnable(Runnable r)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRunnableQueue

public SimpleRunnableQueue(boolean daemon)
Deprecated. 

SimpleRunnableQueue

public SimpleRunnableQueue()
Deprecated. 
Method Detail

asRunnableQueue

public RunnableQueue asRunnableQueue()
Deprecated. 
Specified by:
asRunnableQueue in interface Queuable

postRunnable

public void postRunnable(Runnable r)
Deprecated. 
Specified by:
postRunnable in interface AsynchronousRunner

close

public void close(boolean skip_remaining_tasks)
Deprecated. 
Description copied from interface: AsynchronousRunner
Finish with this AsynchronousRunner, and clean-up any Threads or resources it may hold.

Specified by:
close in interface AsynchronousRunner
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: AsynchronousRunner
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 ).

Specified by:
close in interface ClosableResource
Specified by:
close in interface AsynchronousRunner