com.supermap.services.rest.repository

Class EhcacheRepoSetting

  • java.lang.Object
    • RepositorySetting
      • com.supermap.services.rest.repository.EhcacheRepoSetting


  • public class EhcacheRepoSetting
    extends RepositorySetting
    

    The temporary storage setting class of Ehcache

    Since:
    8.0.0
    • 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 the maxElementsPerGroupInMemory} field. If these two fields are not null, please use the maxBytesOnHeap}
      • 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
    • Constructor Detail

      • EhcacheRepoSetting

        public EhcacheRepoSetting()
        
    • 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()