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, startService
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyMap, getServiceIdentifier, isValid
public ThreadPoolService(IThreadPool threadpool, IServiceProvider provider)
public IFuture<Void> shutdownService()
shutdownService
in interface IInternalService
shutdownService
in class BasicService
listener
- The listener.public void execute(Runnable task)
execute
in interface IThreadPool
task
- The task to execute.public void dispose()
dispose
in interface IThreadPool
Copyright © 2012. All Rights Reserved.