Hi,
I went through all the documentation on the site, read the code of tim-async (and the test cases), however could not find answer to the following question:
- is it possible when I use partitioned cache to have transparent loading and storing of entries? What this means to me is when I do
Code:
cache.get(key) or
cache.put(key, value)
I expect the loading from DB (when value is missing) and the storing (when updated) to happen transparently (from client POV) in the background.
What I understand is that my code has to take care to interact with the cache store via tim-async and the code must look like this
Code:
try{
cache.put(key,apple);
asyncCoordinator.add(apple); //and here the ItemProcessor updates the apple in the DB
}....
I read carefully the wiki http://www.terracotta.org/confluence/display/docs/DSO+Async+Processing however it is not clearly specified there if the cache detects the cache-miss and entity update events and delegates to tim-async, or if the client code must delegate to tim-async
P.S. I did my best, but could not find on the site the sources of the examinator app. All links eventually lead to the binaries and tim-async wiki page claims that the examinator app does not use DSO anymore?