I have the following code:
public void schedule(Node node) { scheduledFuture = executorService.scheduleAtFixedRate(() -> { set(node); }, 1, 3,