mirror of
https://github.com/apache/jclouds.git
synced 2025-02-07 02:29:25 +00:00
Issue 537: changed to bounded thread pool executor
This commit is contained in:
parent
4bcc6a753b
commit
4e114e9b2b
@ -25,8 +25,8 @@ import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ExecutorCompletionService;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
import org.jclouds.concurrent.DynamicExecutors;
|
||||
import org.jclouds.date.DateService;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
@ -44,7 +44,7 @@ public abstract class PerformanceTest {
|
||||
|
||||
@BeforeTest
|
||||
public void setupExecutorService() {
|
||||
exec = Executors.newCachedThreadPool();
|
||||
exec = DynamicExecutors.newScalingThreadPool(1, THREAD_COUNT, 1000);
|
||||
}
|
||||
|
||||
@AfterTest
|
||||
|
Loading…
x
Reference in New Issue
Block a user