List of usage examples for io.vertx.core Vertx createSharedWorkerExecutor
WorkerExecutor createSharedWorkerExecutor(String name, int poolSize, long maxExecuteTime);
From source file:examples.CoreExamples.java
License:Open Source License
public void workerExecutor3(Vertx vertx) { ////from w w w . j a v a 2 s. c o m // 10 threads max int poolSize = 10; // 2 minutes long maxExecuteTime = 120000; WorkerExecutor executor = vertx.createSharedWorkerExecutor("my-worker-pool", poolSize, maxExecuteTime); }