类 HealthEndpoint

    • 方法详细资料

      • 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.
        返回:
        time to live in milliseconds (default 1000)
      • setTimeToLive

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

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