public class RequestThreadFactory implements ThreadFactoryThread factory creating threads with a request specific thread local environment.
Implements
ThreadFactoryConstructors
RequestThreadFactory(ApiProxy.Environment requestEnvironment)
public RequestThreadFactory(ApiProxy.Environment requestEnvironment)Create a new VmRequestThreadFactory.
| Parameter | |
|---|---|
| Name | Description | 
| requestEnvironment | EnvironmentThe request environment to install on each thread. | 
Methods
getRequestThreads()
public List<Thread> getRequestThreads()Returns an immutable copy of the current request thread list.
| Returns | |
|---|---|
| Type | Description | 
| List<Thread> | |
newThread(Runnable runnable)
public Thread newThread(Runnable runnable)Create a new Thread that executes runnable for the duration of the current
 request. This thread will be interrupted at the end of the current request.
| Parameter | |
|---|---|
| Name | Description | 
| runnable | RunnableThe object whose run method is invoked when this thread is started. If null, this classes run method does nothing. | 
| Returns | |
|---|---|
| Type | Description | 
| Thread | |