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.
pull/3452/head
Stephane Nicoll 9 years ago
parent ef39634e30
commit 54619bec3f

@ -61,8 +61,8 @@ public class HealthEndpoint extends AbstractEndpoint<Health> {
}
/**
* 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() {

Loading…
Cancel
Save