Update javadoc for CachingContentFactory.isCacheable()

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2022-09-30 10:34:25 +10:00
parent 98f9deed43
commit 1c9ac9c846
1 changed files with 4 additions and 2 deletions

View File

@ -164,8 +164,10 @@ public class CachingContentFactory implements HttpContent.ContentFactory
}
/**
* @param httpContent the resource to test
* @return whether the httpContent is cacheable. The default implementation tests the cache sizes.
* Tests whether the given HttpContent is cacheable, and if there is enough room to fit it in the cache.
*
* @param httpContent the HttpContent to test.
* @return whether the HttpContent is cacheable.
*/
protected boolean isCacheable(HttpContent httpContent)
{