Package | Description |
---|---|
net.sf.ehcache.constructs.refreshahead |
Ehcache simple refresh-ahead cache decorator package
|
Modifier and Type | Method and Description |
---|---|
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.batchSize(int batchSize)
Fluently set the batch size for processing refresh requests.
|
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.build()
Validate this configuration.
|
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.evictOnLoadMiss(boolean loadMissEvicts)
Fluently set whether no return for a key from all CacheLoaders should force
an eviction prematurely from the underlying cache.
|
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.fromProperties(Properties properties)
Initialize this configuration from a
Properties object. |
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.maximumRefreshBacklogItems(int maximumRefreshBacklogItems)
Fluently set the maximum refresh backlog items.
|
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.name(String name)
Fluently set the name of this cache decorator
|
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.numberOfThreads(int numberOfThreads)
Fluently set the number of threads used locally in this instance to process
refresh requests
|
RefreshAheadCacheConfiguration |
RefreshAheadCacheConfiguration.timeToRefreshSeconds(long secs)
Fluently set the time to refresh seconds
|
Constructor and Description |
---|
RefreshAheadCache(Ehcache adaptedCache,
RefreshAheadCacheConfiguration refreshConfig)
Create a Refresh Ahead Cache Adaptor with the specified configuration.
|
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.