| Package | Description |
|---|---|
| org.cache2k |
API package for cache2k Java caching library.
|
| org.cache2k.configuration |
The cache configuration as a Java bean and support types.
|
| org.cache2k.event |
Events that are fired on behalf of a cache operation.
|
| Modifier and Type | Method and Description |
|---|---|
Cache2kBuilder<K,V> |
Cache2kBuilder.addAsyncListener(CacheEntryOperationListener<K,V> listener)
A set of listeners.
|
Cache2kBuilder<K,V> |
Cache2kBuilder.addListener(CacheEntryOperationListener<K,V> listener)
Add a listener.
|
| Modifier and Type | Method and Description |
|---|---|
CustomizationCollection<CacheEntryOperationListener<K,V>> |
Cache2kConfiguration.getAsyncListeners()
A set of listeners.
|
CustomizationCollection<CacheEntryOperationListener<K,V>> |
Cache2kConfiguration.getListeners()
A set of listeners.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Cache2kConfiguration.setAsyncListeners(Collection<CustomizationSupplier<CacheEntryOperationListener<K,V>>> c)
Adds the collection of customizations to the existing list.
|
void |
Cache2kConfiguration.setListeners(Collection<CustomizationSupplier<CacheEntryOperationListener<K,V>>> c)
Adds the collection of customizations to the existing list.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CacheEntryCreatedListener<K,V>
A new entry is inserted into the cache, e.g.
|
interface |
CacheEntryExpiredListener<K,V>
Listener called for an expired entry.
|
interface |
CacheEntryRemovedListener<K,V>
Called when an entry was actively removed from the cache.
|
interface |
CacheEntryUpdatedListener<K,V>
Fires in case a cache entry is mutated.
|
cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.