Top Inners Fields Constructors Methods
com.mchange.v1.util

public Class SimpleRunnableQueue

extends Object
implements RunnableQueue
Class Inheritance
All Implemented Interfaces
com.mchange.v1.util.RunnableQueue
Imports
java.util.List, .LinkedList

Deprecated

use com.mchange.v2.async.SimpleRunnableQueue

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private Thread
t

private List<E>

Constructor Summary

AccessConstructor and Description
public
SimpleRunnableQueue(boolean daemon)

public

Method Summary

Modifier and TypeMethod and Description
private synchronized void
public synchronized void
private synchronized Runnable
public synchronized void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tback to summary
private Thread t
taskListback to summary
private List<E> taskList

Constructor Detail

SimpleRunnableQueueback to summary
public SimpleRunnableQueue(boolean daemon)
SimpleRunnableQueueback to summary
public SimpleRunnableQueue()

Method Detail

awaitTaskback to summary
private synchronized void awaitTask() throws InterruptedException
closeback to summary
public synchronized void close()
dequeueRunnableback to summary
private synchronized Runnable dequeueRunnable()
postRunnableback to summary
public synchronized void postRunnable(Runnable r)

Implements com.mchange.v1.util.RunnableQueue.postRunnable.

com.mchange.v1.util back to summary

pack-priv Class SimpleRunnableQueue.TaskThread

extends Thread
Class Inheritance

Field Summary

Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopthreadIdtoStringyield

Constructor Detail

TaskThreadback to summary
pack-priv TaskThread()

Method Detail

runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.