public class BlobManagementOptions extends java.lang.Object implements IBlobManagementOptions
Represents options which can be used to manage BLOB handling rules and other BLOB settings.
| Constructor and Description |
|---|
BlobManagementOptions()
Creates new default blob management options.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxBlobsBytesInMemory()
Defines the maximum total size (in bytes) that all BLOBs may occupy in memory.
|
int |
getPresentationLockingBehavior()
This property defines if an instance of the Presentation class can be an owner of the source - file
or stream during the instance lifetime.
|
java.lang.String |
getTempFilesRootPath()
The root path where temporary files will be created.
|
boolean |
isTemporaryFilesAllowed()
This property defines if temporary files can be created while working with BLOBs, what greatly
decreases the memory consumption but requires permissions to create files.
|
void |
setMaxBlobsBytesInMemory(long value)
Defines the maximum total size (in bytes) that all BLOBs may occupy in memory.
|
void |
setPresentationLockingBehavior(int value)
This property defines if an instance of the Presentation class can be an owner of the source - file
or stream during the instance lifetime.
|
void |
setTempFilesRootPath(java.lang.String value)
The root path where temporary files will be created.
|
void |
setTemporaryFilesAllowed(boolean value)
This property defines if temporary files can be created while working with BLOBs, what greatly
decreases the memory consumption but requires permissions to create files.
|
public BlobManagementOptions()
Creates new default blob management options.
public final int getPresentationLockingBehavior()
This property defines if an instance of the Presentation class can be an owner of the source - file or stream during the instance lifetime. If the instance is an owner, it locks the source. This helps to improve memory consumption and performance while working with BLOBs, but the source (stream or file) can't be changed during Presentation's instance lifetime.
getPresentationLockingBehavior in interface IBlobManagementOptionspublic final void setPresentationLockingBehavior(int value)
This property defines if an instance of the Presentation class can be an owner of the source - file or stream during the instance lifetime. If the instance is an owner, it locks the source. This helps to improve memory consumption and performance while working with BLOBs, but the source (stream or file) can't be changed during Presentation's instance lifetime.
setPresentationLockingBehavior in interface IBlobManagementOptionspublic final boolean isTemporaryFilesAllowed()
This property defines if temporary files can be created while working with BLOBs, what greatly decreases the memory consumption but requires permissions to create files.
isTemporaryFilesAllowed in interface IBlobManagementOptionspublic final void setTemporaryFilesAllowed(boolean value)
This property defines if temporary files can be created while working with BLOBs, what greatly decreases the memory consumption but requires permissions to create files.
setTemporaryFilesAllowed in interface IBlobManagementOptionspublic final java.lang.String getTempFilesRootPath()
The root path where temporary files will be created. System temorary directory will be used by default. Hosting process should have permissions to create files and folders there.
getTempFilesRootPath in interface IBlobManagementOptionspublic final void setTempFilesRootPath(java.lang.String value)
The root path where temporary files will be created. System temorary directory will be used by default. Hosting process should have permissions to create files and folders there.
setTempFilesRootPath in interface IBlobManagementOptionspublic final long getMaxBlobsBytesInMemory()
Defines the maximum total size (in bytes) that all BLOBs may occupy in memory. By default, all BLOBs are loaded into memory; only once this limit is reached are alternative mechanisms (such as temporary files) employed. Keeping BLOBs in memory maximizes performance but can lead to high memory usage. Use this property to tailor behavior to your environment or requirements.
isTemporaryFilesAllowed()/setTemporaryFilesAllowed(boolean) is set to false, since memory is then
the only storage location available and limiting in-memory BLOB usage has no effect.
getMaxBlobsBytesInMemory in interface IBlobManagementOptionspublic final void setMaxBlobsBytesInMemory(long value)
Defines the maximum total size (in bytes) that all BLOBs may occupy in memory. By default, all BLOBs are loaded into memory; only once this limit is reached are alternative mechanisms (such as temporary files) employed. Keeping BLOBs in memory maximizes performance but can lead to high memory usage. Use this property to tailor behavior to your environment or requirements.
isTemporaryFilesAllowed()/setTemporaryFilesAllowed(boolean) is set to false, since memory is then
the only storage location available and limiting in-memory BLOB usage has no effect.
setMaxBlobsBytesInMemory in interface IBlobManagementOptionsCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.