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 Summary
Modifier and TypeFieldDescriptionprotected Duration
protected Duration
protected long
protected long
protected boolean
protected boolean
protected com.github.benmanes.caffeine.cache.Weigher<DataObjectPair,
Similarity> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected abstract T
getThis()
protected void
withExpirationAfterAccess
(Duration duration) withExpirationAfterWrite
(Duration duration) withMaximumSize
(long maximumSize) withMaximumWeight
(long maximumWeight) withWeigher
(com.github.benmanes.caffeine.cache.Weigher<DataObjectPair, Similarity> weigher)
-
Field Details
-
maximumSize
protected long maximumSize -
maximumWeight
protected long maximumWeight -
weigher
-
expireAfterAccessDuration
-
expireAfterWriteDuration
-
recordStats
protected boolean recordStats -
readOnly
protected boolean readOnly
-
-
Constructor Details
-
GenericBuilder
protected GenericBuilder()
-
-
Method Details
-
getThis
-
withMaximumSize
-
withMaximumWeight
-
withWeigher
-
withExpirationAfterAccess
-
withExpirationAfterWrite
-
withRecordStats
-
withReadOnly
-
build
-
validateArguments
- Throws:
IllegalArgumentException
-