public class EhcacheRepoSetting
extends RepositorySetting
The temporary storage setting class of Ehcache
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DEFAULT_CACHE_NAME |
protected static int |
DEFAULT_DISK_EXPIRY_THREAD_INTERVAL_SECONDS |
protected static int |
DEFAULT_DISK_SPOOL_BUFFER_SIZE_MB |
protected static java.lang.String |
DEFAULT_DISK_STORE_PATH |
protected static java.lang.String |
DEFAULT_MAX_BYTES_LOCALDISK |
protected static java.lang.String |
DEFAULT_MEMORY_STORE_EVITION_POLICY |
protected static java.lang.String |
DEFAULT_PERSISTENCE_STRATEGY |
protected static java.lang.String |
DIR_TMP |
long |
diskExpiryThreadIntervalSeconds
Check background threads run time interval in the disk.
|
int |
diskSpoolBufferSizeMB
The memory buffer size when write back to the disk.
|
java.lang.String |
diskStorePath
Disk storage path
|
java.lang.String |
maxBytesLocalDisk
The max disk space of each Cache
|
java.lang.String |
maxBytesOnHeap
The entire warehouse biggest memory size.
|
int |
maxElementsPerGroupInMemory
Every group, the max element count saved in the memory
|
java.lang.String |
memoryStoreEvictionPolicy
LRU - least recently used.
LFU - least frequently used. |
java.lang.String |
name
Memory cache name
|
java.lang.String |
persistenceStrategy
Persistence strategy, optional value: none, localtempswap represents the none persistence and persistence to the temporary directory.
|
Constructor and Description |
---|
EhcacheRepoSetting() |
Modifier and Type | Method and Description |
---|---|
static EhcacheRepoSetting |
defaultSetting()
Returns the default temporary storage settings
|
static RepositorySetting |
memoryStoreSetting()
Returns the storage settings based on the memory
|
boolean |
shareable() |
java.lang.String |
toString() |
protected static final java.lang.String DEFAULT_CACHE_NAME
protected static final java.lang.String DIR_TMP
protected static final java.lang.String DEFAULT_DISK_STORE_PATH
protected static final java.lang.String DEFAULT_PERSISTENCE_STRATEGY
protected static final java.lang.String DEFAULT_MEMORY_STORE_EVITION_POLICY
protected static final java.lang.String DEFAULT_MAX_BYTES_LOCALDISK
protected static final int DEFAULT_DISK_EXPIRY_THREAD_INTERVAL_SECONDS
protected static final int DEFAULT_DISK_SPOOL_BUFFER_SIZE_MB
public java.lang.String maxBytesLocalDisk
public java.lang.String diskStorePath
public long diskExpiryThreadIntervalSeconds
public int maxElementsPerGroupInMemory
public java.lang.String memoryStoreEvictionPolicy
public int diskSpoolBufferSizeMB
public java.lang.String maxBytesOnHeap
maxElementsPerGroupInMemory
} field. If these two fields are not null, please use the maxBytesOnHeap
}public java.lang.String persistenceStrategy
public java.lang.String name
public static EhcacheRepoSetting defaultSetting()
Returns the default temporary storage settings
public static RepositorySetting memoryStoreSetting()
Returns the storage settings based on the memory
public java.lang.String toString()
public boolean shareable()