Skip to content

Commit

Permalink
chore: Polish javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
nstdio committed Mar 18, 2022
1 parent 7180d0f commit 7cb13e9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ abstract class ConstrainedCacheBuilder<B extends ConstrainedCacheBuilder<B>> imp
* 8192.
*
* @param maxItems The maximum number of cache entries. Should be positive.
*
* @return builder itself.
*/
public B maxItems(int maxItems) {
if (maxItems <= 0) {
Expand All @@ -50,6 +52,8 @@ public B maxItems(int maxItems) {
/**
* The amount of bytes allowed to be stored. Negative value means no memory restriction is made. Note that only
* response body bytes are counted.
*
* @return builder itself.
*/
public B size(long size) {
this.size = size;
Expand All @@ -62,6 +66,8 @@ public B size(long size) {
* header in request.
*
* @param filter The request filter.
*
* @return builder itself.
*/
public B requestFilter(Predicate<HttpRequest> filter) {
Objects.requireNonNull(filter);
Expand All @@ -81,6 +87,8 @@ public B requestFilter(Predicate<HttpRequest> filter) {
* no-store} header in response.
*
* @param filter The request filter.
*
* @return builder itself.
*/
public B responseFilter(Predicate<ResponseInfo> filter) {
Objects.requireNonNull(filter);
Expand Down

0 comments on commit 7cb13e9

Please sign in to comment.