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.
This commit is contained in:
Stephane Nicoll 2015-07-08 15:05:50 +02:00
parent ef39634e30
commit 54619bec3f
1 changed files with 2 additions and 2 deletions

View File

@ -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 * Time to live for cached result. This is particularly useful to cache the
* result of this endpoint to prevent a DOS attack. * result of this endpoint to prevent a DOS attack if it is accessed anonymously.
* @return time to live in milliseconds (default 1000) * @return time to live in milliseconds (default 1000)
*/ */
public long getTimeToLive() { public long getTimeToLive() {