public class VmRequestThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
VmRequestThreadFactory(com.google.apphosting.api.ApiProxy.Environment requestEnvironment)
Create a new VmRequestThreadFactory.
|
| Modifier and Type | Method and Description |
|---|---|
List<Thread> |
getRequestThreads()
Returns an immutable copy of the current request thread list.
|
Thread |
newThread(Runnable runnable)
Create a new
Thread that executes runnable for the duration of the current
request. |
public VmRequestThreadFactory(com.google.apphosting.api.ApiProxy.Environment requestEnvironment)
requestEnvironment - The request environment to install on each thread.public Thread newThread(Runnable runnable)
Thread that executes runnable for the duration of the current
request. This thread will be interrupted at the end of the current request.newThread in interface ThreadFactoryrunnable - The object whose run method is invoked when this thread is started. If null,
this classes run method does nothing.ApiProxy.ApiProxyException - If called outside of a running request.IllegalStateException - If called after the request thread stops.Copyright © 2014. All Rights Reserved.