Class CaffeineSimilarityCache.GenericBuilder<T extends CaffeineSimilarityCache.GenericBuilder<T>>

java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.CaffeineSimilarityCache.GenericBuilder<T>
Direct Known Subclasses:
CaffeineSimilarityCache.Builder, FileBasedCaffeineSimilarityCache.GenericBuilder
Enclosing class:
CaffeineSimilarityCache

public abstract static class CaffeineSimilarityCache.GenericBuilder<T extends CaffeineSimilarityCache.GenericBuilder<T>> extends Object
  • Field Details

    • maximumSize

      protected long maximumSize
    • maximumWeight

      protected long maximumWeight
    • weigher

      protected com.github.benmanes.caffeine.cache.Weigher<DataObjectPair,Similarity> weigher
    • expireAfterAccessDuration

      protected Duration expireAfterAccessDuration
    • expireAfterWriteDuration

      protected Duration expireAfterWriteDuration
    • recordStats

      protected boolean recordStats
    • readOnly

      protected boolean readOnly
  • Constructor Details

    • GenericBuilder

      protected GenericBuilder()
  • Method Details

    • getThis

      protected abstract T getThis()
    • withMaximumSize

      public T withMaximumSize(long maximumSize)
    • withMaximumWeight

      public T withMaximumWeight(long maximumWeight)
    • withWeigher

      public T withWeigher(com.github.benmanes.caffeine.cache.Weigher<DataObjectPair,Similarity> weigher)
    • withExpirationAfterAccess

      public T withExpirationAfterAccess(Duration duration)
    • withExpirationAfterWrite

      public T withExpirationAfterWrite(Duration duration)
    • withRecordStats

      public T withRecordStats()
    • withReadOnly

      public T withReadOnly()
    • build

      public CaffeineSimilarityCache build()
    • validateArguments

      protected void validateArguments() throws IllegalArgumentException
      Throws:
      IllegalArgumentException