[infinispan-dev] [ISPN-78] RFC: Finalizing API

Manik Surtani manik at jboss.org
Fri May 20 02:34:43 EDT 2011


On 19 May 2011, at 20:56, Olaf Bergner wrote:

>> 
>> Yes, some form of MetaData would need to be defined.  Or maybe we just need size.
>> 
>> int sizeOfEntry(K key)
> As of today LargeObjectMetadata already stores a large object's total 
> size. In the future it may well hold additional metadata as e.g. mime 
> type and possibly arbitrary user defined key-value-pairs. To keep the 
> API as stable as possible I rather opt for
> 
> Metadata largeObjectMetadata(K key)

getLargeObjectMetadata(K key)?

> 
> instead of dedicated methods for each conceivable metadatum.


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

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






More information about the infinispan-dev mailing list