I suppose some wrapper classes would be an okay approach in the short
term. Although to get all the moons aligned the instances of that wrapper
classes would need to be defined by the internal "clustered state loader"
inside each express L1 client. That seems to imply a kludgely method on
toolkit like wrapByteArray(byte []) to get one of these special wrapper
instances.

I don't have a good alternative to the one you've already suggested -- use
String keys into the map.

> -----Original Message-----
> From: tc-dev-boun...@lists.terracotta.org [mailto:tc-dev-
> boun...@lists.terracotta.org] On Behalf Of Sergio Bossa
> Sent: Tuesday, September 07, 2010 1:04 PM
> To: tc-dev
> Subject: [tc-dev] Byte array wrapper type for ClusteredMap keys in
> express mode
> 
> Hi guys,
> 
> I was recently trying to use a byte[] as the key for a ClusteredMap in
> express mode, but it doesn't work (see
> https://jira.terracotta.org/jira/browse/CDV-1511 for more details).
> The workaround is obviously to convert the byte[] in String and use
> this as the key, but String has much larger memory occupation.
> 
> So, in case you didn't want to fix the byte[] problem (I may
> understand the reasons), what about adding to the toolkit a
> "clustered" byte[] wrapper which actually works with ClusteredMap in
> express mode?
> 
> Thanks,
> Cheers,
> 
> Sergio B.
> 
> --
> Sergio Bossa
> http://www.linkedin.com/in/sergiob
> _______________________________________________
> tc-dev mailing list
> tc-dev@lists.terracotta.org
> http://lists.terracotta.org/mailman/listinfo/tc-dev
_______________________________________________
tc-dev mailing list
tc-dev@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to