BlobManagementOptions

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IBlobManagementOptions

public class BlobManagementOptions implements IBlobManagementOptions

Represents options which can be used to manage BLOB handling rules and other BLOB settings.

Constructors

ConstructorDescription
BlobManagementOptions()Creates new default blob management options.

Methods

MethodDescription
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.
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.
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.
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.
getTempFilesRootPath()The root path where temporary files will be created.
setTempFilesRootPath(String value)The root path where temporary files will be created.
getMaxBlobsBytesInMemory()Defines the maximum amount (in bytes) that all BLOBs in total may occupy in memory.
setMaxBlobsBytesInMemory(long value)Defines the maximum amount (in bytes) that all BLOBs in total may occupy in memory.

BlobManagementOptions()

public BlobManagementOptions()

Creates new default blob management options.

getPresentationLockingBehavior()

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.

Returns: int

setPresentationLockingBehavior(int value)

public 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.

Parameters:

ParameterTypeDescription
valueint

isTemporaryFilesAllowed()

public 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.


All files will be deleted after work with the presentation will be finished.

Returns: boolean

setTemporaryFilesAllowed(boolean value)

public 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.


All files will be deleted after work with the presentation will be finished.

Parameters:

ParameterTypeDescription
valueboolean

getTempFilesRootPath()

public final 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.

Returns: java.lang.String

setTempFilesRootPath(String value)

public final void setTempFilesRootPath(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.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getMaxBlobsBytesInMemory()

public final long getMaxBlobsBytesInMemory()

Defines the maximum amount (in bytes) that all BLOBs in total may occupy in memory. First, all BLOBs loading into memory as default behavior and only when it reaches the limit defined by this property, other mechanisms (such as temporary files) can be involved. In terms of performance, the most efficient way is storing BLOBs in memory, but from the other side, it leads to a high memory consumption what may be undesirable. Using this property, you may set the optimal behavior for your environment or other requirements.


This property will be ignored if IsTemporaryFilesAllowed (#isTemporaryFilesAllowed.isTemporaryFilesAllowed/#setTemporaryFilesAllowed(boolean).setTemporaryFilesAllowed(boolean)) is set to false. It makes no sense to limit the maximum BLOBs in memory, because if IsTemporaryFilesAllowed (#isTemporaryFilesAllowed.isTemporaryFilesAllowed/#setTemporaryFilesAllowed(boolean).setTemporaryFilesAllowed(boolean)) is set to false, the memory is the only place where BLOBs can be stored.


Default value is 629,145,600 bytes (600Mb).

Returns: long

setMaxBlobsBytesInMemory(long value)

public final void setMaxBlobsBytesInMemory(long value)

Defines the maximum amount (in bytes) that all BLOBs in total may occupy in memory. First, all BLOBs loading into memory as default behavior and only when it reaches the limit defined by this property, other mechanisms (such as temporary files) can be involved. In terms of performance, the most efficient way is storing BLOBs in memory, but from the other side, it leads to a high memory consumption what may be undesirable. Using this property, you may set the optimal behavior for your environment or other requirements.


This property will be ignored if IsTemporaryFilesAllowed (#isTemporaryFilesAllowed.isTemporaryFilesAllowed/#setTemporaryFilesAllowed(boolean).setTemporaryFilesAllowed(boolean)) is set to false. It makes no sense to limit the maximum BLOBs in memory, because if IsTemporaryFilesAllowed (#isTemporaryFilesAllowed.isTemporaryFilesAllowed/#setTemporaryFilesAllowed(boolean).setTemporaryFilesAllowed(boolean)) is set to false, the memory is the only place where BLOBs can be stored.


Default value is 629,145,600 bytes (600Mb).

Parameters:

ParameterTypeDescription
valuelong