/*
* Send to the executor a delayed task. It will begin its execution after 1 second of dealy
* and then it will be executed every three seconds
*/
executor.scheduleAtFixedRate(task, 1, 3, TimeUnit.SECONDS);
/*
* Sleep the thread during ten seconds
*/
TimeUnit.SECONDS.sleep(10);