protected void update()

in src/main/java/org/apache/sling/engine/impl/debug/RequestInfoProviderImpl.java [66:82]


    protected void update(final Config config) {
        this.maxSize = config.sling_max_record_requests();
        if ( this.maxSize < 0 ) {
            this.maxSize = 0;
        }
        this.requests = (this.maxSize > 0) ? new ConcurrentSkipListMap<>() : null;
        final List<Pattern> compiledPatterns = new ArrayList<>();
        if (config.sling_store_pattern_requests() != null) {
            for (final String pattern : config.sling_store_pattern_requests()) {
                if (pattern != null && pattern.trim().length() > 0) {
                    compiledPatterns.add(Pattern.compile(pattern.trim()));
                }
            }
        }
        this.patterns = compiledPatterns;

    }