Class DefaultAccessTokenHealthProvider

All Implemented Interfaces:
Closeable, AutoCloseable, AccessTokenHealthProvider, AccessTokenProvider

public class DefaultAccessTokenHealthProvider extends AbstractAccessTokenHealthProvider
Lazy implementation of health provider.

Returns bad health if
- a previous invocation has failed, and a new invocation (by the indicator, from the top level) fails as well.

Returns good health if
- a previous invocation was successful, or
- a previous invocation has failed, but a new invocation (by the the indicator, from the top level) is successful.

Calls to this health indicator does not trigger a (remote) refresh if the last call to the underlying provider was successful.