Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Sleeper
Waits between two polls of the token endpoint. It is a bean so that tests replace it and never really wait.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sleep(Duration duration)
    Blocks the current thread for the given time.
  • Method Details