[infinispan-dev] Externalizer in AtomicHashMap needed?

Manik Surtani manik at jboss.org
Wed Jun 20 10:48:09 EDT 2012


On 20 Jun 2012, at 14:30, Martin Gencur wrote:

> Hi,
> I'm playing with partial object's state transfer, similar to how
> AtomicHashMap/AtomicHashMapDelta works. The purpose of these classes is,
> among other things, to show that for objects large in size we can
> transfer just the updated part of them, not whole objects.
> 
> I tried to implement DeltaAware and Delta interfaces and my tests showed
> that only methods of the delta object's externalizer were called. Not
> methods of the externalizer of the actual object holding the data. 
> 
> To be precise - I have two classes:
> Bicycle implements DeltaAware (similar to AtomicHashMap)
> BicycleDelta implements Delta (similar to AtomicHashMapDelta)
> 
> ...and only BicycleDelta's externalizer's methods were called. Not those
> of Bicycle's externalizer.
> 
> This brings me to AtomicHashMap... is the externalizer for this class
> ever used/needed?

Yes, when serialising to disk.  :)

Does your test use a CacheStore?

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Project Lead, Infinispan
http://www.infinispan.org

Platform Architect, JBoss Data Grid
http://www.redhat.com/promo/dg6beta

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20120620/e853db3d/attachment-0001.html 


More information about the infinispan-dev mailing list