File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/main/java/io/undertow/server/handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 46
46
public class LearningPushHandler implements HttpHandler {
47
47
48
48
private static final String SESSION_ATTRIBUTE = "io.undertow.PUSHED_RESOURCES" ;
49
- private static final int DEFAULT_MAX_CACHE_ENTRIES = 200 ;
50
- private static final int DEFAULT_MAX_CACHE_AGE = LRUCache .MAX_AGE_NO_EXPIRY ;
49
+ private static final int DEFAULT_MAX_CACHE_ENTRIES = Integer . getInteger ( "io.undertow.handlers.learning-push.default-max-entries" , 200 ) ;
50
+ private static final int DEFAULT_MAX_CACHE_AGE = Integer . getInteger ( "io.undertow.handlers.learning-push.default-max-age" , LRUCache .MAX_AGE_NO_EXPIRY ) ;
51
51
52
52
private final LRUCache <String , LRUCache <String , PushedRequest >> cache ;
53
53
You can’t perform that action at this time.
0 commit comments