All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.aemds.guide.cache.api.CacheConfig Maven / Gradle / Ivy

/*******************************************************************************
 * ADOBE CONFIDENTIAL
 * ___________________
 * Copyright 2016 Adobe Systems Incorporated
 * All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by all applicable intellectual property
 * laws, including trade secret and copyright laws.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 ******************************************************************************/

package com.adobe.aemds.guide.cache.api;

public final class CacheConfig {
    private final int initialCapacity;
    private final int maximumEntries;

    private static final int INITIAL_CAPACITY_DEFAULT = 100;
    private static final int MAXIMUM_ENTRIES = 100;

    public CacheConfig(int initialCapacity, int maximumEntries) {
        this.initialCapacity = initialCapacity;
        this.maximumEntries = maximumEntries;
    }

    public CacheConfig() {
        this(INITIAL_CAPACITY_DEFAULT, MAXIMUM_ENTRIES);
    }

    public int getInitialCapacity() {
        return initialCapacity;
    }

    public int getMaximumEntries() {
        return maximumEntries;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy