You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Mauro Talevi <ma...@aquilonia.org> on 2003/06/07 19:57:10 UTC
[Patches] [cornerstone scheduler] Using longs in PeriodicTimeTrigger
Hi,
find attached a few patches which allow the use of longs in the
PeriodicTimeTrigger.
The problem with using int's is that ordering is lost when using very
long schedules, as only the precision of int's is garanteed.
Note that everywhere in the code longs are used - with the notable
exception of the TimeScheduledEntry comparator, which is where the
crucial change is.
I also attach unit test for PeriodicTimeTrigger.
Attachments:
patch1 - PeriodicTimeTrigger
patch2 - TimeScheduledEntry
patch3 - PeriodicTimeTriggerTestCase
Cheers, m.