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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
