Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I did not understand the explanation at oracle, what is this piece of code actually doing?
final int maximumDelay = (int) TimeUnit.SECONDS.toMillis(1000);
它将 1000 秒转换为毫秒,然后将结果从 截断long为int。
long
int