commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: Re[2]: Gump & VM
Date Fri, 16 Dec 2005 09:40:38 GMT
Alexey Panchenko wrote on Friday, December 16, 2005 5:11 AM:

> Jörg Schaible wrote:
> 
>> Well, no, the id generator should produce as many ids as possible.
>> The only requirement for this one is, that you can recreate the time
>> from the generated id and that the ids are generated in a natural
>> order. This is currently resolved by an internal counter that is
>> resetted everytime the current millis have changed.
> 
> Probably you should look at java.rmi.server.UID -- the millis are
> checked only when internal counter reaches its limit.

This violates the requirement to recalculate the creation time from the id ... but this approach
might be adapted: I can use my internal counter as long as the time has not *increased* instead
of resetting it if the time has simply changed. Sometimes the simplest ideas are best ...

Thanks,
Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message