|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.connector.grizzly.GrizzlyThreadFactory
public class GrizzlyThreadFactory
Customized ThreadFactory used by the Pipeline
instance.
| Field Summary | |
|---|---|
protected String |
name
The name used when creating threads |
protected int |
port
The port used when created threads' name. |
protected int |
priority
The priority used when creating threads. |
protected int |
threadCount
The number of created threads. |
| Constructor Summary | |
|---|---|
GrizzlyThreadFactory(String name,
int port,
int priority)
Create an instance of ThreadFactory |
|
| Method Summary | |
|---|---|
ThreadGroup |
getThreadGroup()
Return the ThreadGroup used by this factory |
boolean |
interruptThread(long threadID)
Interrupt the Thread using it thread id |
Thread |
newThread(Runnable r)
Create a new thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String name
protected int port
protected int threadCount
protected int priority
| Constructor Detail |
|---|
public GrizzlyThreadFactory(String name,
int port,
int priority)
ThreadFactory
name - the name of thread who will be created by this factoryport - the port of thread who will be created by this factorypriority - the priority of thread who will be created by this factory| Method Detail |
|---|
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryr - an instance of a Task.
public ThreadGroup getThreadGroup()
ThreadGroup used by this factory
public boolean interruptThread(long threadID)
Thread using it thread id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||