Class AbstractEvictionPolicyFactory<T>

    • Constructor Detail

      • AbstractEvictionPolicyFactory

        public AbstractEvictionPolicyFactory()
    • Method Detail

      • setMaxSize

        public AbstractEvictionPolicyFactory setMaxSize​(int max)
        Sets maximum allowed size of cache before entry will start getting evicted.
        Parameters:
        max - Maximum allowed size of cache before entry will start getting evicted.
        Returns:
        this for chaining.
      • getMaxSize

        public int getMaxSize()
        Gets maximum allowed size of cache before entry will start getting evicted.
        Returns:
        Maximum allowed size of cache before entry will start getting evicted.
      • setBatchSize

        public AbstractEvictionPolicyFactory setBatchSize​(int batchSize)
        Sets batch size.
        Parameters:
        batchSize - Batch size.
        Returns:
        this for chaining.
      • getBatchSize

        public int getBatchSize()
        Gets batch size.
        Returns:
        batch size.
      • setMaxMemorySize

        public AbstractEvictionPolicyFactory setMaxMemorySize​(long maxMemSize)
        Sets maximum allowed cache size in bytes.
        Parameters:
        maxMemSize - Maximum allowed cache size in bytes.
        Returns:
        this for chaining.
      • getMaxMemorySize

        public long getMaxMemorySize()
        Gets maximum allowed cache size in bytes.
        Returns:
        maximum allowed cache size in bytes.