public class ThreadPoolService extends BasicService implements IThreadPoolService
EMPTY_SERVICES| Constructor and Description |
|---|
ThreadPoolService(IThreadPool threadpool,
IServiceProvider provider)
Create a new threadpool service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Shutdown the thread pool.
|
void |
execute(Runnable task)
Execute a task in its own thread.
|
IFuture<Void> |
shutdownService()
Shutdown the service.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, startServicegetClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropertyMap, getServiceIdentifier, isValidpublic ThreadPoolService(IThreadPool threadpool, IServiceProvider provider)
public IFuture<Void> shutdownService()
shutdownService in interface IInternalServiceshutdownService in class BasicServicelistener - The listener.public void execute(Runnable task)
execute in interface IThreadPooltask - The task to execute.public void dispose()
dispose in interface IThreadPoolCopyright © 2012. All Rights Reserved.