SpongeAPI provides a ScheduledExecutorService , And Guava provides a well defined, and well tested abstract service class: https://google.github.io/guava/releases/19.0/api/docs/com/google/common/util/concurrent/AbstractScheduledService.html
Is it possible to extend the AbstractSceduledService in order to use the Sponge ScheduledExecutorService ?
I've tried extending AbstractScheduledService myself, But AbstractScheduledService.Scheduler has a private constructor, preventing creation of my own Schedulers to create custom scheduling.
If I'm understanding right, you should be able to override AbstractScheduledService.executor()
to return a SpongeExecutorService
.