public interface Semantic<K,V,R>
Progress
for instructing the cache what needs to be done.Modifier and Type | Interface and Description |
---|---|
static class |
Semantic.Base<K,V,R>
Base class to provide a default for the load result.
|
static class |
Semantic.MightUpdateExisting<K,V,R>
Read a cache entry and do an optional update.
|
static class |
Semantic.Read<K,V,R>
Read only operation.
|
static class |
Semantic.Update<K,V,R>
Only update the entry.
|
static class |
Semantic.UpdateExisting<K,V,R>
Read a cache entry and do an optional update.
|
Modifier and Type | Method and Description |
---|---|
void |
examine(Progress<K,V,R> c,
ExaminationEntry<K,V> e)
Called with the entry containing the recent content.
|
void |
loaded(Progress<K,V,R> c,
ExaminationEntry<K,V> e)
Load is complete.
|
void |
start(Progress<K,V,R> c)
Start of the operation.
|
void |
update(Progress<K,V,R> c,
ExaminationEntry<K,V> e)
Perform the mutation.
|
void examine(Progress<K,V,R> c, ExaminationEntry<K,V> e)
Progress.wantMutation()
it will be called again after the entry is locked
for mutation to reevaluate the examination after other processing completed.void update(Progress<K,V,R> c, ExaminationEntry<K,V> e)
Progress
.cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.