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 booleanstatic final Stringstatic final ByteSizestatic final longDeprecated, for removal: This API element is subject to removal in a future version.static final Durationprotected Stringprotected Booleanprotected DurationThe rate to run the GC.protected ByteSizeThe maximum byte size 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.longDeprecated, for removal: This API element is subject to removal in a future version.since 2025.11, usegetMaxSize()insteadbooleanmerge(Descriptor o) Returns a descriptor representingothermerged intothisprotected voidsetMaxSizeKB(Long maxSizeKB) Deprecated.since 2025.11Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
DEFAULT_DISK_CACHE_IN_KB
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, useDEFAULT_DISK_CACHEinstead -
enabled
-
directory
-
gcRate
The rate to run the GC. -
maxSize
The maximum byte size 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:DescriptorThe 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:
getIdin interfaceDescriptor
-
isEnabled
public boolean isEnabled() -
getDirectory
-
getGcRate
-
getMaxSize
- Since:
- 2025.11
-
getMaxSizeKB
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.11, usegetMaxSize()instead -
setMaxSizeKB
Deprecated.since 2025.11- Since:
- 2025.11, for backward compatibility purpose
-
merge
Description copied from interface:DescriptorReturns a descriptor representingothermerged intothisDefault implementation returns
other.- Specified by:
mergein interfaceDescriptor- Returns:
- the merged descriptor
-
DEFAULT_DISK_CACHEinstead