|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.Cache
public class Cache
Contains cache settings.
Constructor Summary | |
---|---|
Cache()
|
Method Summary | |
---|---|
static StreamContainer |
allocate(long length)
Allocates a new stream container of the specified length. |
static long |
getAllocatedDiskBytesCount()
Gets the allocated disk bytes count. |
static long |
getAllocatedMemoryBytesCount()
Gets the allocated in-memory bytes count. |
static java.lang.String |
getCacheFolder()
Gets or sets the cache folder. |
static int |
getCacheType()
Gets the cache scheme used. |
static boolean |
getExactReallocateOnly()
Gets a value indicating whether reallocation should be exact or not. |
static int |
getMaxDiskSpaceForCache()
Gets the maximum available disk space for cache. |
static int |
getMaxMemoryForCache()
Gets the maximum available memory for cache in memory. |
static void |
setCacheType(int value)
Sets the cache scheme used. |
static void |
setDefaults()
Sets the Cache settings to defaults. |
static void |
setExactReallocateOnly(boolean value)
Sets a value indicating whether reallocation should be exact or not. |
static void |
setMaxDiskSpaceForCache(int value)
Sets the maximum available disk space for cache. |
static void |
setMaxMemoryForCache(int value)
Sets the maximum available memory for cache in memory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cache()
Method Detail |
---|
public static StreamContainer allocate(long length)
Allocates a new stream container of the specified length.
length
- The length, specified in bytes.
public static long getAllocatedDiskBytesCount()
Gets the allocated disk bytes count.
Value: The allocated disk bytes count.
public static long getAllocatedMemoryBytesCount()
Gets the allocated in-memory bytes count.
Value: The allocated in-memory bytes count.
public static java.lang.String getCacheFolder()
Gets or sets the cache folder.
Value: The cache folder.
public static int getCacheType()
Gets the cache scheme used.
Value: The cache scheme used.
public static boolean getExactReallocateOnly()
Gets a value indicating whether reallocation should be exact or not. If reallocation is non exact the performance should be higher.
Value:true
if reallocation is exact; otherwise, false
.
public static int getMaxDiskSpaceForCache()
Gets the maximum available disk space for cache. The value specified is megabytes count.
Value: The maximum available disk space for cache.
public static int getMaxMemoryForCache()
Gets the maximum available memory for cache in memory. The value specified is megabytes count.
Value: The maximum memory for cache.
public static void setCacheType(int value)
Sets the cache scheme used.
Value: The cache scheme used.
public static void setDefaults()
Sets the Cache
settings to defaults.
public static void setExactReallocateOnly(boolean value)
Sets a value indicating whether reallocation should be exact or not. If reallocation is non exact the performance should be higher.
Value:true
if reallocation is exact; otherwise, false
.
public static void setMaxDiskSpaceForCache(int value)
Sets the maximum available disk space for cache. The value specified is megabytes count.
Value: The maximum available disk space for cache.
public static void setMaxMemoryForCache(int value)
Sets the maximum available memory for cache in memory. The value specified is megabytes count.
Value: The maximum memory for cache.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |