You should submit the Runnable object to the ExecutorService, for example:



executor.submit(task)