This content has been marked as final.
Show 2 replies
-
1. Re: Are calls to cache.getX methods asynchronized?
manik Oct 21, 2008 4:22 AM (in response to chetanparekh)they are not synchronized, but internal locking is used to maintain consistency between concurrent readers and writers.
Now to optimize for immutable state, as you suggested, there are 2 things you can do:
1. If you are using JBC 3.x, use MVCC. There is no cost to readers. Simple.
2. If you are using JBC 2.x, use pessimistic locking and set your isolation level to NONE. But be aware that any concurrent write that may happen could corrupt the state that readers read. -
2. Re: Are calls to cache.getX methods asynchronized?
chetanparekh Oct 21, 2008 8:31 AM (in response to chetanparekh)Thanks Manik