Package | Description |
---|---|
org.cache2k |
API package for cache2k Java caching library.
|
org.cache2k.event |
Events that are fired on behalf of a cache operation.
|
org.cache2k.spi |
Service provider interface that is used by the cache2k implementation.
|
Modifier and Type | Method and Description |
---|---|
Cache<K,V> |
Cache2kBuilder.build()
Builds a cache with the specified configuration parameters.
|
abstract <K,V> Cache<K,V> |
CacheManager.createCache(Cache2kConfiguration<K,V> cfg)
Create a new cache from the configuration.
|
abstract <K,V> Cache<K,V> |
CacheManager.getCache(String name)
Return a known cache that must be created before via the
Cache2kBuilder
or CacheManager.createCache(Cache2kConfiguration) |
Modifier and Type | Method and Description |
---|---|
abstract Iterable<Cache> |
CacheManager.getActiveCaches()
Returns all caches created in this cache manager instance.
|
Modifier and Type | Method and Description |
---|---|
void |
CacheEntryCreatedListener.onEntryCreated(Cache<K,V> cache,
CacheEntry<K,V> entry)
Called after a creation of a cache entry and after all cache writers ran successfully.
|
void |
CacheEntryExpiredListener.onEntryExpired(Cache<K,V> cache,
CacheEntry<K,V> entry)
Called after the expiry of an entry.
|
void |
CacheEntryRemovedListener.onEntryRemoved(Cache<K,V> cache,
CacheEntry<K,V> entry)
Called after the removal of a cache entry and after all cache writers ran successfully.
|
void |
CacheEntryUpdatedListener.onEntryUpdated(Cache<K,V> cache,
CacheEntry<K,V> currentEntry,
CacheEntry<K,V> entryWithNewData)
Called after a mutation of a cache entry and after all cache writers ran successfully.
|
Modifier and Type | Method and Description |
---|---|
<K,V> Cache<K,V> |
Cache2kCoreProvider.createCache(CacheManager m,
Cache2kConfiguration<K,V> cfg)
Create a cache, apply external configuration before creating it.
|
cache2k API documentation. Copyright © 2000–2017 headissue GmbH, Munich.