/** * Executes the given command at some time in the future. The command with the same {@code index} * will be executed in the same thread. * * @param task the runnable task * @param idx Striped index. * @throws RejectedExecutionException if this task cannot be * accepted for execution. * @throws NullPointerException If command is null */ public void execute(Runnable task, int idx) { execs[threadId(idx)].execute(task); }
callbackExecSvc = new IgniteStripedThreadPoolExecutor( cfg.getAsyncCallbackPoolSize(), cfg.getIgniteInstanceName(),
callbackExecSvc = new IgniteStripedThreadPoolExecutor( cfg.getAsyncCallbackPoolSize(), cfg.getIgniteInstanceName(),
/** * Executes the given command at some time in the future. The command with the same {@code index} * will be executed in the same thread. * * @param task the runnable task * @param idx Striped index. * @throws RejectedExecutionException if this task cannot be * accepted for execution. * @throws NullPointerException If command is null */ public void execute(Runnable task, int idx) { execs[threadId(idx)].execute(task); }