| Package | Description |
|---|---|
| com.trivago.triava.tcache | |
| com.trivago.triava.tcache.core | |
| com.trivago.triava.tcache.event | |
| com.trivago.triava.tcache.storage |
| Modifier and Type | Method and Description |
|---|---|
<K,V> Builder<K,V> |
TCacheFactory.builder()
Returns a Builder
|
| Modifier and Type | Method and Description |
|---|---|
TriavaCacheConfiguration<K,V,? extends Builder<K,V>> |
Cache.configuration() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
Cache.evictionExtraSpace(Builder<K,V> builder)
Returns a size factor for the map for the specific eviction strategy of this Cache.
|
protected int |
CacheLimit.evictionExtraSpace(Builder<K,V> builder)
Calculates the amount of extra space that we need as eviction extra space in the storage Map.
|
| Constructor and Description |
|---|
Cache(TCacheFactory factory,
Builder<K,V> builder)
Construct a Cache, using the given configuration from the Builder.
|
CacheLimit(TCacheFactory factory,
Builder<K,V> builder) |
| Modifier and Type | Class and Description |
|---|---|
class |
InternalBuilder<K,V>
A Builder that additionally stores the TCacheFactory.
|
| Modifier and Type | Method and Description |
|---|---|
Builder<K,V> |
Builder.setCacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader<K,V>> loaderFactory) |
Builder<K,V> |
Builder.setCacheWriteMode(CacheWriteMode writeMode) |
Builder<K,V> |
Builder.setCacheWriterFactory(javax.cache.configuration.Factory<? extends javax.cache.integration.CacheWriter<? super K,? super V>> factory) |
Builder<K,V> |
Builder.setCleanupInterval(int cleanupInterval,
TimeUnit timeUnit) |
Builder<K,V> |
Builder.setConcurrencyLevel(int concurrencyLevel) |
Builder<K,V> |
Builder.setEvictionClass(EvictionInterface<K,V> clazz) |
Builder<K,V> |
Builder.setEvictionPolicy(EvictionPolicy evictionPolicy) |
Builder<K,V> |
Builder.setExpectedMapSize(int maxElements)
Deprecated.
|
Builder<K,V> |
Builder.setExpiryPolicyFactory(javax.cache.configuration.Factory<? extends javax.cache.expiry.ExpiryPolicy> factory)
Sets the ExpiryPolicyFactory.
|
Builder<K,V> |
Builder.setHashImplementation(HashImplementation hashImplementation)
Set the StorageBackend for the underlying ConcurrentMap.
|
Builder<K,V> |
Builder.setId(String id) |
Builder<K,V> |
Builder.setJamPolicy(JamPolicy jamPolicy)
Sets the policy, how a Thread that calls put() will behave the cache is full.
|
Builder<K,V> |
Builder.setLoader(CacheLoader<K,V> loader) |
Builder<K,V> |
Builder.setManagement(boolean management)
Sets whether management should be enabled.
|
Builder<K,V> |
Builder.setMaxCacheTime(int maxCacheTime,
int interval,
TimeUnit timeUnit) |
Builder<K,V> |
Builder.setMaxCacheTime(int maxCacheTime,
TimeUnit timeUnit) |
Builder<K,V> |
Builder.setMaxElements(int maxElements) |
Builder<K,V> |
Builder.setMaxIdleTime(int maxIdleTime,
TimeUnit timeUnit) |
Builder<K,V> |
Builder.setReadThrough(boolean isReadThrough) |
Builder<K,V> |
Builder.setStatistics(boolean statistics)
Sets whether statistics should be gathered.
|
Builder<K,V> |
Builder.setWriteThrough(boolean isWriteThrough) |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentMap<K,? extends TCacheHolder<V>> |
StorageBackend.createMap(Builder<K,V> builder,
double sizeFactor)
Returns a ConcurrentMap conforming to the configuration specified in the builder.
|
| Constructor and Description |
|---|
ListenerCollection(Cache<K,V> tcache,
Builder<K,V> builder)
Creates a ListenerCollection that consists of all listeners from builder.getCacheEntryListenerConfigurations().
|
| Modifier and Type | Method and Description |
|---|---|
ConcurrentMap<K,TCacheHolder<V>> |
JavaConcurrentHashMap.createMap(Builder<K,V> builder,
double evictionMapSizeFactor) |
ConcurrentMap<K,TCacheHolder<V>> |
HighscalelibNonBlockingHashMap.createMap(Builder<K,V> builder,
double evictionMapSizeFactor) |
Copyright © 2018 trivago. All rights reserved.