@Override
    public void shutdown() {
        if (!this.start.compareAndSet(true, false)) {
            return;
        }
        try {
            this.allocateService.shutdown(true);
        } catch (final Exception e) {
            LOG.error("Error on shutdown {}'s serviceManager,", this.abstractDB.getDBName(), e);
        }
    }
Manager of service like allocateService
@author hzh (642256541@qq.com)
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/service/ServiceManager.java