com.supermap.services.rest.repository
Class EhcacheRepoSetting
- java.lang.Object
-
- RepositorySetting
-
- com.supermap.services.rest.repository.EhcacheRepoSetting
-
public class EhcacheRepoSetting extends RepositorySettingThe temporary storage setting class of Ehcache
- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description protected static java.lang.StringDEFAULT_CACHE_NAMEprotected static intDEFAULT_DISK_EXPIRY_THREAD_INTERVAL_SECONDSprotected static intDEFAULT_DISK_SPOOL_BUFFER_SIZE_MBprotected static java.lang.StringDEFAULT_DISK_STORE_PATHprotected static java.lang.StringDEFAULT_MAX_BYTES_LOCALDISKprotected static java.lang.StringDEFAULT_MEMORY_STORE_EVITION_POLICYprotected static java.lang.StringDEFAULT_PERSISTENCE_STRATEGYprotected static java.lang.StringDIR_TMPlongdiskExpiryThreadIntervalSecondsCheck background threads run time interval in the disk.intdiskSpoolBufferSizeMBThe memory buffer size when write back to the disk.java.lang.StringdiskStorePathDisk storage pathjava.lang.StringmaxBytesLocalDiskThe max disk space of each Cachejava.lang.StringmaxBytesOnHeapThe entire warehouse biggest memory size.intmaxElementsPerGroupInMemoryEvery group, the max element count saved in the memoryjava.lang.StringmemoryStoreEvictionPolicyLRU - least recently used.
LFU - least frequently used.java.lang.StringnameMemory cache namejava.lang.StringpersistenceStrategyPersistence strategy, optional value: none, localtempswap represents the none persistence and persistence to the temporary directory.
-
Constructor Summary
Constructors Constructor and Description EhcacheRepoSetting()
-
Method Summary
Methods Modifier and Type Method and Description static EhcacheRepoSettingdefaultSetting()Returns the default temporary storage settingsstatic RepositorySettingmemoryStoreSetting()Returns the storage settings based on the memorybooleanshareable()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_CACHE_NAME
protected static final java.lang.String DEFAULT_CACHE_NAME
-
DIR_TMP
protected static final java.lang.String DIR_TMP
-
DEFAULT_DISK_STORE_PATH
protected static final java.lang.String DEFAULT_DISK_STORE_PATH
-
DEFAULT_PERSISTENCE_STRATEGY
protected static final java.lang.String DEFAULT_PERSISTENCE_STRATEGY
-
DEFAULT_MEMORY_STORE_EVITION_POLICY
protected static final java.lang.String DEFAULT_MEMORY_STORE_EVITION_POLICY
-
DEFAULT_MAX_BYTES_LOCALDISK
protected static final java.lang.String DEFAULT_MAX_BYTES_LOCALDISK
-
DEFAULT_DISK_EXPIRY_THREAD_INTERVAL_SECONDS
protected static final int DEFAULT_DISK_EXPIRY_THREAD_INTERVAL_SECONDS
-
DEFAULT_DISK_SPOOL_BUFFER_SIZE_MB
protected static final int DEFAULT_DISK_SPOOL_BUFFER_SIZE_MB
-
maxBytesLocalDisk
public java.lang.String maxBytesLocalDisk
The max disk space of each Cache
-
diskStorePath
public java.lang.String diskStorePath
Disk storage path
-
diskExpiryThreadIntervalSeconds
public long diskExpiryThreadIntervalSeconds
Check background threads run time interval in the disk. Default is 2 minutes, namely, 2*60 seconds; If this value is less than or equal to. it will use the default value
-
maxElementsPerGroupInMemory
public int maxElementsPerGroupInMemory
Every group, the max element count saved in the memory
-
memoryStoreEvictionPolicy
public java.lang.String memoryStoreEvictionPolicy
LRU - least recently used.
LFU - least frequently used.
FIFO - first in first out, the oldest element by creation time.
-
diskSpoolBufferSizeMB
public int diskSpoolBufferSizeMB
The memory buffer size when write back to the disk. Unit is MB
-
maxBytesOnHeap
public java.lang.String maxBytesOnHeap
The entire warehouse biggest memory size. This field has conflict with themaxElementsPerGroupInMemory} field. If these two fields are not null, please use themaxBytesOnHeap}
-
persistenceStrategy
public java.lang.String persistenceStrategy
Persistence strategy, optional value: none, localtempswap represents the none persistence and persistence to the temporary directory. It will be a failure after restarting the virtual machine.
-
name
public java.lang.String name
Memory cache name
-
-
Method Detail
-
defaultSetting
public static EhcacheRepoSetting defaultSetting()
Returns the default temporary storage settings
- Returns:
- Since:
- 8.0.0
-
memoryStoreSetting
public static RepositorySetting memoryStoreSetting()
Returns the storage settings based on the memory
- Returns:
- Since:
- 8.0.0
-
toString
public java.lang.String toString()
-
shareable
public boolean shareable()
-
-