public class MemoryExtender extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MemoryExtender.CallBackPageImage
The call back procedure for manipulating the cache.
|
| Constructor and Description |
|---|
MemoryExtender() |
| Modifier and Type | Method and Description |
|---|---|
static MemoryExtender.CallBackPageImage |
getCallBackPageImage()
Get the custom cache analyzer.
|
static int |
getElementRenderingTimeout()
The maximum time for rendering single element used in page to image conversion.
|
static boolean |
isEnabledMultiPageImageCache()
Get the status for EnabledMultiPageImageCache field
|
static boolean |
isOptimizedMemoryStreamByDefault()
Is enabled to use OptimizedMemoryStream as default memory storage.
|
static void |
isOptimizedMemoryStreamByDefault(boolean value)
Is enabled to use OptimizedMemoryStream as default memory storage.
|
static boolean |
isSkipHeavyContentEnabled()
Is enabled to skip objects with high memory consumption in rendering with lack of heap
memory.
|
static boolean |
isSwapEnabled()
Is enabled to use disk space as a temporary swap memory.
|
static boolean |
isTryToCreateFolderIfAbsent()
Gets a value indicating whether missing folders should be automatically created.
|
static void |
setCallBackPageImage(MemoryExtender.CallBackPageImage callBackPageImage_)
Apply the new custom cache analyzer.
|
static void |
setElementRenderingTimeout(int value)
The maximum time for rendering single element used in page to image conversion.
|
static void |
setEnableMultiPageCache(boolean enableMultiPageImageCache_)
Set the new status for EnabledMultiPageImageCache field
|
static void |
setSkipHeavyContentEnabled(boolean value)
Set flag to enable to skip objects with high memory consumption in rendering with lack of
heap memory.
|
static void |
setSwapEnabled(boolean value)
Set flag whether disk space is enabled to use as a temporary swap memory.
|
static void |
setTryToCreateFolderIfAbsent(boolean value)
Sets a value indicating whether missing folders should be automatically created.
|
public static boolean isSwapEnabled()
public static boolean isOptimizedMemoryStreamByDefault()
public static void isOptimizedMemoryStreamByDefault(boolean value)
value - boolean valuepublic static void setSwapEnabled(boolean value)
value - boolean valuepublic static boolean isSkipHeavyContentEnabled()
public static void setSkipHeavyContentEnabled(boolean value)
value - boolean valuepublic static int getElementRenderingTimeout()
public static void setElementRenderingTimeout(int value)
value - int value
Number of millisecondspublic static MemoryExtender.CallBackPageImage getCallBackPageImage()
public static void setCallBackPageImage(MemoryExtender.CallBackPageImage callBackPageImage_)
callBackPageImage_ - CallBackPageImage objectpublic static boolean isEnabledMultiPageImageCache()
public static void setEnableMultiPageCache(boolean enableMultiPageImageCache_)
enableMultiPageImageCache_ - boolean valuepublic static boolean isTryToCreateFolderIfAbsent()
If set to true, Aspose methods that save by path will attempt to
create the target folder structure if it does not already exist.
The default value is false.
public static void setTryToCreateFolderIfAbsent(boolean value)
If set to true, Aspose methods that save by path will attempt to
create the target folder structure if it does not already exist.
The default value is false.
value - boolean valueCopyright © 2025 Aspose. All Rights Reserved.