Interface Sleeper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Waits between two polls of the token endpoint. It is a bean so that tests replace it and never really wait.
-
Method Summary
-
Method Details
-
sleep
Blocks the current thread for the given time.- Parameters:
duration- how long to wait.- Throws:
InterruptedException- if the thread is interrupted while waiting.
-