| java.lang.Runnable
All known Subclasses: com.sun.midp.content.InvocStoreCancel, IXCDemo.ixcXlets.serverXlet.PlaneServer, com.sun.midp.io.j2me.cbs.TestCBSOpenClose, gov.nist.siplite.stack.UDPMessageChannel, java.util.TimerTask, com.sun.midp.io.j2me.datagram.TestDatagramWouldBlock, com.sun.midp.installer.AutoTesterBase, sun.awt.pocketpc.PPCToolkit, com.sun.midp.jsr82emul.EmulationServer, com.sun.midp.scriptutil.SuiteRemover, com.sun.jumpimpl.ixc.WorkerThreadPool, sun.awt.gtk.GToolkit, com.sun.midp.io.j2me.cbs.TestCBS, tests.appcontext.TestLet, com.sun.j2me.global.NormalizationTableImpl, com.sun.midp.lcdui.SystemAlert, com.sun.midp.content.ResponseListenerImpl, com.sun.midp.content.RequestListenerImpl, com.sun.midp.io.j2me.mms.TestMMSOpenClose, com.sun.midp.main.ExecuteMIDletEventListener, sun.applet.AppletPanel, com.sun.mmedia.GIFPlayer, com.sun.midp.content.Invoker, com.sun.midp.chameleon.input.BasicInputMode, com.sun.perseus.model.SMILSample, com.sun.jumpimpl.isolate.jvmprocess.main.AppContainerImpl, com.sun.midp.jsr82emul.RunnableProcessor, com.sun.midp.demos.manyballs.SmallBall, com.sun.midp.scriptutil.HttpJadInstaller, com.sun.midp.io.j2me.mms.TestMMSNumberOfSegments, com.sun.kvem.jsr082.obex.ServerConnectionImpl, com.sun.midp.appmanager.SMMManager, com.sun.midp.content.InvocStoreStress, com.sun.midp.io.j2me.sms.TestSMSOpenClose, sun.net.www.http.KeepAliveCache, gov.nist.siplite.stack.UDPMessageProcessor, com.sun.midp.scriptutil.CommandLineInstaller, com.sun.midp.scriptutil.SuiteLister, com.sun.midp.jump.isolate.MIDletContainer, com.sun.perseus.util.RunnableQueue, com.sun.mmedia.QSoundABBToneSequencePlayer, java.awt.MWGraphicsEnvironment, com.sun.midp.io.j2me.sms.TestSMS, sun.awt.qt.QtToolkit, org.netbeans.modules.j2me.cdc.platform.platformdefinition.PlatformConvertor, gov.nist.siplite.parser.PipelinedMsgParser, javax.microedition.sip.TestSipCommunication, gov.nist.siplite.EventScanner, com.sun.midp.util.SerialCallback, gov.nist.siplite.stack.TCPMessageProcessor, gov.nist.siplite.RegistrationHelper, com.sun.xlet.ixc.Worker, com.sun.jumpimpl.ixc.ConnectionReceiver, sun.misc.VM, java.awt.X11GraphicsEnvironment, com.sun.midp.io.j2me.socket.TestInterruptedIO, com.sun.midp.i3test.Framework, com.sun.midp.jsr82emul.ClientHandler, com.sun.midp.io.j2me.mms.TestMMSSendReceive, com.sun.midp.main.NamsTestService,
Runnable | public interface Runnable (Code) | | The Runnable interface should be implemented by any
class whose instances are intended to be executed by a thread. The
class must define a method of no arguments called run .
This interface is designed to provide a common protocol for objects that
wish to execute code while they are active. For example,
Runnable is implemented by class Thread .
Being active simply means that a thread has been started and has not
yet been stopped.
In addition, Runnable provides the means for a class to be
active while not subclassing Thread . A class that implements
Runnable can run without subclassing Thread
by instantiating a Thread instance and passing itself in
as the target. In most cases, the Runnable interface should
be used if you are only planning to override the run()
method and no other Thread methods.
This is important because classes should not be subclassed
unless the programmer intends on modifying or enhancing the fundamental
behavior of the class.
version: 12/17/01 (CLDC 1.1) See Also: java.lang.Thread since: JDK1.0, CLDC 1.0 |
Method Summary | |
abstract public void | run() When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
run | abstract public void run()(Code) | | When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread.
The general contract of the method run is that it may
take any action whatsoever.
See Also: java.lang.Thread.run |
|
|