class TimeLimiterServiceImpl implements TimeLimiterService {

    @Override
    public void shutdown() {
        if (started) {
            started = false;
            Enumeration<String> keys = allocatedLimiters.keys();
            Collections.asList(keys).forEach(name -> Tasks.shutdownExecutor(name, allocatedLimiters.get(name).executor, 5));
        } else {
            log.warn("The service is already shut down.");
        }
    }

    public  TimeLimiterServiceImpl();

}