APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.jvm.hotspot.utilities

public Class WorkerThread

extends Object
Class Inheritance

This class abstracts the notion of a worker thread which is fed tasks in the form of Runnables.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private volatile boolean
private MessageQueue
private MessageQueueBackend

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
invokeLater(Runnable runnable)

Runs the given Runnable in the thread represented by this WorkerThread object at an unspecified later time.

public void
shutdown()

Can be used to dispose of the internal worker thread.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

doneback to summary
private volatile boolean done
mqback to summary
private MessageQueue mq
mqbback to summary
private MessageQueueBackend mqb

Constructor Detail

WorkerThreadback to summary
public WorkerThread()

Method Detail

invokeLaterback to summary
public void invokeLater(Runnable runnable)

Runs the given Runnable in the thread represented by this WorkerThread object at an unspecified later time.

shutdownback to summary
public void shutdown()

Can be used to dispose of the internal worker thread. Note that this method may return before the internal worker thread terminates.

sun.jvm.hotspot.utilities back to summary

pack-priv Class WorkerThread.MainLoop

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private MessageQueue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

myMqback to summary
private MessageQueue myMq

Constructor Detail

MainLoopback to summary
public MainLoop()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.