Class ConvertCacheDescriptor
java.lang.Object
org.nuxeo.ecm.core.convert.extension.ConvertCacheDescriptor
- All Implemented Interfaces:
Descriptor
- Since:
- 2025.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
static final String
static final long
static final Duration
protected String
protected Boolean
protected Duration
The rate to run the GC.protected Long
The maximum size (in KB) to reach to run the GC.Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
The descriptor id, descriptors with same id are merged.long
boolean
merge
(Descriptor o) Returns a descriptor representingother
merged intothis
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
DEFAULT_CACHE_ENABLED
public static final boolean DEFAULT_CACHE_ENABLED- See Also:
-
DEFAULT_CACHING_DIRECTORY
- See Also:
-
DEFAULT_GC_RATE
-
DEFAULT_DISK_CACHE_IN_KB
public static final long DEFAULT_DISK_CACHE_IN_KB- See Also:
-
enabled
-
directory
-
gcRate
The rate to run the GC. -
maxSizeKB
The maximum size (in KB) to reach to run the GC.Use a negative value to clear the cache on each GC run.
-
-
Constructor Details
-
ConvertCacheDescriptor
public ConvertCacheDescriptor()
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
isEnabled
public boolean isEnabled() -
getDirectory
-
getGcRate
-
getMaxSizeKB
public long getMaxSizeKB() -
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-