|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
php.java.bridge.ThreadPool.Delegate
php.java.bridge.AppThreadPool.Delegate
final class AppThreadPool.Delegate
A specialized delegate which can handle persistent connections and interrupts application threads when end() or terminate() is called.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected java.lang.ThreadGroup |
appGroup
|
| Fields inherited from class php.java.bridge.ThreadPool.Delegate |
|---|
terminate |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
AppThreadPool.Delegate(java.lang.String name)
Create a new delegate. |
| Method Summary | |
|---|---|
protected void |
createThread(java.lang.String name)
|
protected void |
end()
|
java.lang.ThreadGroup |
getAppGroup()
Return the app group for this delegate. |
void |
setPersistent()
Make this thread a daemon thread. |
protected void |
terminate()
|
| Methods inherited from class php.java.bridge.ThreadPool.Delegate |
|---|
run |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.ThreadGroup appGroup
| Constructor Detail |
|---|
protected AppThreadPool.Delegate(java.lang.String name)
name - The name of the delegate.| Method Detail |
|---|
public java.lang.ThreadGroup getAppGroup()
public void setPersistent()
protected void createThread(java.lang.String name)
createThread in class ThreadPool.Delegateprotected void terminate()
terminate in class ThreadPool.Delegateprotected void end()
end in class ThreadPool.Delegate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||