I did not understand the explanation in oracle, what does this piece of code actually do?
final int maximumDelay = (int) TimeUnit.SECONDS.toMillis(1000);
It converts 1000 seconds to milliseconds, then truncates the result from longto int.
long
int