@Test public void testScheduleTask() throws Exception { assertNotNull(worker.scheduleTask(callable, 0, TimeUnit.SECONDS)); }
public <T> ListenableScheduledFuture<T> scheduleTask(Callable<T> task, int period, TimeUnit unit) { LOG.debug("Scheduling task {} with period {} {}", Objects.requireNonNull(task).getClass(), period, unit); return scheduledExecutorService.schedule(task, period, unit); }
ThreadsWorker implements AutoCloseable { public <T> ListenableScheduledFuture<T> scheduleTask(Callable<T> task, int period, TimeUnit unit) { LOG.debug("Scheduling task {} with period {} {}", Objects.requireNonNull(task).getClass(), period, unit); return scheduledExecutorService.schedule(task, period, unit); } }
ThreadsWorker implements AutoCloseable { public <T> ListenableScheduledFuture<T> scheduleTask(Callable<T> task, int period, TimeUnit unit) { LOG.debug("Scheduling task {} with period {} {}", Objects.requireNonNull(task).getClass(), period, unit); return scheduledExecutorService.schedule(task, period, unit); } ThreadsWorker(ScheduledExecutorService scheduledExecutorService, ExecutorService defaultExecutorService,
            ExecutorService executorServiceInbound, ExecutorService executorServiceOutbound);  ThreadsWorker();  ThreadsWorker(int inPool, int defaultPool, int outPool, int timers); }
ThreadsWorker implements AutoCloseable { public <T> ListenableScheduledFuture<T> scheduleTask(Callable<T> task, int period, TimeUnit unit) { LOG.debug("Scheduling task {} with period {} {}", Objects.requireNonNull(task).getClass(), period, unit); return scheduledExecutorService.schedule(task, period, unit); } 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> ListenableScheduledFuture<T> scheduleTask(Callable<T> task, int period, TimeUnit unit) { LOG.debug("Scheduling task {} with period {} {}", Objects.requireNonNull(task).getClass(), period, unit); return scheduledExecutorService.schedule(task, period, unit); } 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();  }