From 54619bec3fc3ad1888af553c88871ac0977ddb6f Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 8 Jul 2015 15:05:50 +0200 Subject: [PATCH] Clarify javadoc This might just be me but when I read the original javadoc it made me think that caching worked only if the endpoint is accessed anonymously. --- .../springframework/boot/actuate/endpoint/HealthEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java index a48bb894a6..96f8f1325b 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java @@ -61,8 +61,8 @@ public class HealthEndpoint extends AbstractEndpoint { } /** - * Time to live for cached result. If accessed anonymously, we might need to cache the - * result of this endpoint to prevent a DOS attack. + * 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. * @return time to live in milliseconds (default 1000) */ public long getTimeToLive() {