enragedginger / akka-quartz-scheduler

Quartz Extension and utilities for cron-style scheduling in Akka
Other
559 stars 114 forks source link

Make Typed extension internally delegate to untyped #122

Open zackman0010 opened 1 year ago

zackman0010 commented 1 year ago

With typed extending the untyped extension, two copies of the scheduler were getting created with the same name. Quartz does not allow duplicate schedulers, so only the first extension to launch would actually successfully launch. The second would fail. This commit instead makes the typed extension have a reference to the untyped, internally delegating all calls to the untyped scheduler. An implicit conversion function is included to make all methods of the untyped extension available on the typed extension as they were before.