Package org.nuxeo.ecm.core.blob
Class CachingConfiguration
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
-
- org.nuxeo.ecm.core.blob.CachingConfiguration
-
public class CachingConfiguration extends PropertyBasedConfiguration
Configuration for a cache.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_COUNT_PROPERTY
static String
CACHE_MIN_AGE_PROPERTY
static String
CACHE_SIZE_PROPERTY
static String
DEFAULT_CACHE_COUNT
static String
DEFAULT_CACHE_MIN_AGE
static String
DEFAULT_CACHE_SIZE
Path
dir
long
maxCount
long
maxSize
long
minAge
-
Fields inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
properties, systemPropertyPrefix
-
-
Constructor Summary
Constructors Constructor Description CachingConfiguration(String systemPropertyPrefix, Map<String,String> properties)
CachingConfiguration(Path dir, long maxSize, long maxCount, long minAge)
-
Method Summary
-
Methods inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
getBooleanProperty, getIntProperty, getIntProperty, getLongProperty, getProperty, getProperty
-
-
-
-
Field Detail
-
CACHE_SIZE_PROPERTY
public static final String CACHE_SIZE_PROPERTY
- See Also:
- Constant Field Values
-
CACHE_COUNT_PROPERTY
public static final String CACHE_COUNT_PROPERTY
- See Also:
- Constant Field Values
-
CACHE_MIN_AGE_PROPERTY
public static final String CACHE_MIN_AGE_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_CACHE_SIZE
public static final String DEFAULT_CACHE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_CACHE_COUNT
public static final String DEFAULT_CACHE_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_CACHE_MIN_AGE
public static final String DEFAULT_CACHE_MIN_AGE
- See Also:
- Constant Field Values
-
dir
public final Path dir
-
maxSize
public final long maxSize
-
maxCount
public final long maxCount
-
minAge
public final long minAge
-
-
Constructor Detail
-
CachingConfiguration
public CachingConfiguration(String systemPropertyPrefix, Map<String,String> properties) throws IOException
- Throws:
IOException
-
CachingConfiguration
public CachingConfiguration(Path dir, long maxSize, long maxCount, long minAge)
-
-