@Test public void testExecuteTaskCallable() throws Exception { assertNotNull(worker.executeTask(callable, ThreadsWorker.WorkerType.DEFAULT)); assertNotNull(worker.executeTask(callable, ThreadsWorker.WorkerType.OUTBOUND)); assertNotNull(worker.executeTask(callable, ThreadsWorker.WorkerType.INBOUND)); }
public <T> ListenableFuture<T> executeTask(Callable<T> task, WorkerType type) { LOG.debug("Execute task {}", Objects.requireNonNull(task).getClass()); return getExecutor(type).submit(Objects.requireNonNull(task)); }
ThreadsWorker implements AutoCloseable { public <T> ListenableFuture<T> executeTask(Callable<T> task, WorkerType type) { LOG.debug("Execute task {}", Objects.requireNonNull(task).getClass()); return getExecutor(type).submit(Objects.requireNonNull(task)); } }
ThreadsWorker implements AutoCloseable { public <T> ListenableFuture<T> executeTask(Callable<T> task, WorkerType type) { LOG.debug("Execute task {}", Objects.requireNonNull(task).getClass()); return getExecutor(type).submit(Objects.requireNonNull(task)); } ThreadsWorker(ScheduledExecutorService scheduledExecutorService, ExecutorService defaultExecutorService,
            ExecutorService executorServiceInbound, ExecutorService executorServiceOutbound);  ThreadsWorker();  ThreadsWorker(int inPool, int defaultPool, int outPool, int timers); }
ThreadsWorker implements AutoCloseable { public <T> ListenableFuture<T> executeTask(Callable<T> task, WorkerType type) { LOG.debug("Execute task {}", Objects.requireNonNull(task).getClass()); return getExecutor(type).submit(Objects.requireNonNull(task)); } ThreadsWorker(ScheduledExecutorService scheduledExecutorService, ExecutorService defaultExecutorService,
            ExecutorService executorServiceInbound, ExecutorService executorServiceOutbound);  ThreadsWorker();  ThreadsWorker(int inPool, int defaultPool, int outPool, int timers); ListenableScheduledFuture<T> scheduleTask(Callable<T> task, int period, TimeUnit unit); ListenableFuture<T> executeTask(Callable<T> task, WorkerType type); ListenableFuture<T> executeTaskInSequence(final Callable<T> task, final WorkerType type); ListenableFuture<T> executeTaskInSequence(final Callable<T> task, final WorkerType type,
            final SxpConnection connection); void cancelTasksInSequence(final boolean mayInterruptIfRunning, final WorkerType type); void cancelTasksInSequence(final boolean mayInterruptIfRunning, final WorkerType type,
            final SxpConnection connection); ListenableFuture executeTask(Runnable task, WorkerType type); void addListener(ListenableFuture task, Runnable listener); static ExecutorService generateExecutor(int threads, final String poolName); static ScheduledExecutorService generateScheduledExecutor(int threads, final String poolName); ListeningExecutorService getDefaultExecutorService(); @Override void close(); }
ThreadsWorker implements AutoCloseable { public <T> ListenableFuture<T> executeTask(Callable<T> task, WorkerType type) { LOG.debug("Execute task {}", Objects.requireNonNull(task).getClass()); return getExecutor(type).submit(Objects.requireNonNull(task)); } ThreadsWorker(ScheduledExecutorService scheduledExecutorService, ExecutorService defaultExecutorService,
            ExecutorService executorServiceInbound, ExecutorService executorServiceOutbound);  ThreadsWorker();  ThreadsWorker(int inPool, int defaultPool, int outPool, int timers); ListenableScheduledFuture<T> scheduleTask(Callable<T> task, int period, TimeUnit unit); ListenableFuture<T> executeTask(Callable<T> task, WorkerType type); ListenableFuture<T> executeTaskInSequence(final Callable<T> task, final WorkerType type); ListenableFuture<T> executeTaskInSequence(final Callable<T> task, final WorkerType type,
            final SxpConnection connection); void cancelTasksInSequence(final boolean mayInterruptIfRunning, final WorkerType type); void cancelTasksInSequence(final boolean mayInterruptIfRunning, final WorkerType type,
            final SxpConnection connection); ListenableFuture executeTask(Runnable task, WorkerType type); void addListener(ListenableFuture task, Runnable listener); static ExecutorService generateExecutor(int threads, final String poolName); static ScheduledExecutorService generateScheduledExecutor(int threads, final String poolName); ListeningExecutorService getDefaultExecutorService(); @Override void close();  }