class CoreCountBasedScheduledExecutorServiceProvider implements Provider<ScheduledExecutorService> {

    @PreDestroy
    protected void shutdown() {
        if (service != null)
            service.shutdown();
    }

}