7
scheduleAtFixedRate vs scheduleWithFixedDelay
¿Cuál es la principal diferencia entre los métodos scheduleAtFixedRatey scheduleWithFixedDelayde ScheduledExecutorService ? scheduler.scheduleAtFixedRate(new Runnable() { @Override public void run() { System.out.println("scheduleAtFixedRate: " + new Date()); } }, 1, 3L , SECONDS); scheduler.scheduleWithFixedDelay(new Runnable() { @Override public void run() { System.out.println("scheduleWithFixedDelay: " + new Date()); } }, 1, 3L , SECONDS); …