public FakeAsyncMultiMap(ConcurrentMap<K, ChoosableSet<V>> map) { taskQueue = new TaskQueue(); this.map = map; }
@Override <T> void execute(T value, Handler<T> task) { orderedTasks.execute(wrapTask(value, task, workerPool.metrics()), workerPool.executor()); } }
protected ContextImpl(VertxInternal vertx, EventLoop eventLoop, WorkerPool internalBlockingPool, WorkerPool workerPool, String deploymentID, JsonObject config, ClassLoader tccl) { if (DISABLE_TCCL && tccl != ClassLoader.getSystemClassLoader()) { log.warn("You have disabled TCCL checks but you have a custom TCCL to set."); } this.deploymentID = deploymentID; this.config = config; this.eventLoop = eventLoop; this.tccl = tccl; this.owner = vertx; this.workerPool = workerPool; this.internalBlockingPool = internalBlockingPool; this.orderedTasks = new TaskQueue(); this.internalOrderedTasks = new TaskQueue(); this.closeHooks = new CloseHooks(log); }
queue.execute(command, exec); } else { exec.execute(command);
@Test public void testInternalExecuteBlockingWithQueue() { ContextInternal context = (ContextInternal) vertx.getOrCreateContext(); TaskQueue[] queues = new TaskQueue[] { new TaskQueue(), new TaskQueue()}; AtomicReference<Thread>[] current = new AtomicReference[queues.length]; waitFor(queues.length);
@Override <T> void execute(T value, Handler<T> task) { orderedTasks.execute(wrapTask(value, task, workerPool.metrics()), workerPool.executor()); } }
public FakeAsyncMultiMap(ConcurrentMap<K, ChoosableSet<V>> map) { taskQueue = new TaskQueue(); this.map = map; }
queue.execute(command, exec); } else { exec.execute(command);
protected ContextImpl(VertxInternal vertx, EventLoop eventLoop, WorkerPool internalBlockingPool, WorkerPool workerPool, String deploymentID, JsonObject config, ClassLoader tccl) { if (DISABLE_TCCL && tccl != ClassLoader.getSystemClassLoader()) { log.warn("You have disabled TCCL checks but you have a custom TCCL to set."); } this.deploymentID = deploymentID; this.config = config; this.eventLoop = eventLoop; this.tccl = tccl; this.owner = vertx; this.workerPool = workerPool; this.internalBlockingPool = internalBlockingPool; this.orderedTasks = new TaskQueue(); this.internalOrderedTasks = new TaskQueue(); this.closeHooks = new CloseHooks(log); }
@Test public void testInternalExecuteBlockingWithQueue() { ContextInternal context = (ContextInternal) vertx.getOrCreateContext(); TaskQueue[] queues = new TaskQueue[] { new TaskQueue(), new TaskQueue()}; AtomicReference<Thread>[] current = new AtomicReference[queues.length]; waitFor(queues.length);
public FakeAsyncMultiMap(final ConcurrentMap<K, ChoosableSet<V>> map) { this.taskQueue = new TaskQueue(); this.map = map; }
public FakeAsyncMultiMap(final ConcurrentMap<K, ChoosableSet<V>> map) { this.taskQueue = new TaskQueue(); this.map = map; }