Class HealthEndpoint

    • Method Detail

      • getTimeToLive

        public long getTimeToLive()
        Time to live for cached result. This is particularly useful to cache the result of this endpoint to prevent a DOS attack if it is accessed anonymously.
        Returns:
        time to live in milliseconds (default 1000)
      • setTimeToLive

        public void setTimeToLive​(long timeToLive)
        Set the time to live for cached results.
        Parameters:
        timeToLive - the time to live in milliseconds
      • invoke

        public Health invoke()
        Invoke all HealthIndicator delegates and collect their health information.
        Returns:
        the results of the invocation