net.csdn.modules.threadpool
Class DefaultThreadPoolService
java.lang.Object
net.csdn.modules.threadpool.DefaultThreadPoolService
- All Implemented Interfaces:
- ThreadPoolService
public class DefaultThreadPoolService
- extends Object
- implements ThreadPoolService
BlogInfo: william
Date: 11-9-5
Time: 下午4:49
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultThreadPoolService
@Inject
public DefaultThreadPoolService(net.csdn.common.settings.Settings settings)
runWithTimeout
public <T> T runWithTimeout(int timeValue,
ThreadPoolService.Run<T> run)
- Specified by:
runWithTimeout in interface ThreadPoolService
start
public DefaultThreadPoolService start()
executor
public Executor executor(String name)
- Specified by:
executor in interface ThreadPoolService
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command,
net.csdn.common.unit.TimeValue interval)
shutdown
public void shutdown()
shutdownNow
public void shutdownNow()
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
build
public Executor build(String name)
buildCache
public Executor buildCache(String name)
Copyright © 2014. All Rights Reserved.