[infinispan-dev] Rollback and CacheEntry

Vladimir Blagojevic vblagoje at redhat.com
Wed Oct 12 07:53:25 EDT 2011


On 11-10-12 1:12 PM, Mircea Markus wrote:
> On 12 Oct 2011, at 11:11, Vladimir Blagojevic wrote:
>
>> Mircea,
>>
>> I agree! I can store Delta changes under composite keys (delta key + actual map key) in tx context and when/if commit is issued these deltas can be merged into AHM. Great!
>>
>> However, I would need to fiddle with ReadCommitedEntry#commit method. This method a bit of a kludge already and it would be great if we could introduce some indirection here in the form of some new CommitMethod interface. Impl of this interface could be passed to mvcc factory method when mvcc entries are created and invoked on CacheEntry#commit.
> Can't you extend the CacheEntry with an e.g. FineGrainedAMCacheEntry and implement the commit in an appropriate way there? FineGrainedAMCacheEntry would correspond to an (k,v) change within an FGAM...
Yes, I can. I would just have to remove final directive from that 
method. If you object say so :-)

Thanks Mircea,
Vladimir


More information about the infinispan-dev mailing list