Commit 54619bec authored by Stephane Nicoll's avatar Stephane Nicoll

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.
parent ef39634e
...@@ -61,8 +61,8 @@ public class HealthEndpoint extends AbstractEndpoint<Health> { ...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment