|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.indy.IndyThread
Provides the basis for Indy threading as used by PeerThread in TCPServer.
IndyThread.StopMode,
IndyThread.Priority| Inner Class Summary | |
static class |
IndyThread.Priority
Represents IndyThread priority. |
static class |
IndyThread.StopMode
An enumertaed class describing the possible stopping modes for an IndyThread. |
| Field Summary | |
protected boolean |
stopRequested
Description of the Field |
protected java.lang.Thread |
threadImpl
|
| Constructor Summary | |
IndyThread()
Constructor for the IdThread object |
|
| Method Summary | |
void |
addThreadListener(IndyThreadListener l)
Adds a feature to the ThreadListener attribute of the IdThread object |
protected void |
afterExecute()
Description of the Method |
protected void |
afterRun()
Description of the Method |
protected void |
beforeExecute()
Description of the Method |
protected void |
beforeRun()
Description of the Method |
protected void |
cleanup()
|
IndyThread.Priority |
getPriority()
|
IndyThread.StopMode |
getStopMode()
|
protected java.lang.Thread |
getThreadImpl()
|
boolean |
isStopped()
Gets the stopped attribute of the IdThread object |
void |
join()
Description of the Method |
void |
removeThreadListener(IndyThreadListener l)
|
void |
setPriority(IndyThread.Priority p)
|
void |
setStopMode(IndyThread.StopMode mode)
|
void |
start()
Description of the Method |
void |
stop()
Description of the Method |
void |
terminate()
|
void |
terminateAndWait()
Description of the Method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
run |
| Field Detail |
protected final java.lang.Thread threadImpl
protected volatile boolean stopRequested
| Constructor Detail |
public IndyThread()
| Method Detail |
public boolean isStopped()
protected java.lang.Thread getThreadImpl()
public final void start()
public final void stop()
public void terminate()
public void join()
throws java.lang.InterruptedException
java.lang.InterruptedException - Description of the Exception
public void terminateAndWait()
throws java.lang.InterruptedException
java.lang.InterruptedException - Description of the Exceptionpublic IndyThread.StopMode getStopMode()
public void setStopMode(IndyThread.StopMode mode)
mode - public IndyThread.Priority getPriority()
public void setPriority(IndyThread.Priority p)
p -
protected void cleanup()
throws java.lang.InterruptedException
protected void beforeRun()
throws java.lang.InterruptedException
protected void afterRun()
throws java.lang.InterruptedException
protected void beforeExecute()
throws java.lang.InterruptedException
protected void afterExecute()
throws java.lang.InterruptedException
public void addThreadListener(IndyThreadListener l)
l - The feature to be added to the ThreadListener attributepublic void removeThreadListener(IndyThreadListener l)
l -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||