protected void init()

in src/main/java/com/aliyuncs/kms/secretsmanager/client/SecretCacheClient.java [160:180]


    protected void init() throws CacheSecretException {
        secretClient.init();
        cacheSecretStoreStrategy.init();
        refreshSecretStrategy.init();
        cacheHook.init();
        for (String secretName : secretTTLMap.keySet()) {
            SecretInfo secretInfo = null;
            try {
                secretInfo = getSecretValue(secretName);
            } catch (CacheSecretException e) {
                CommonLogger.getCommonLogger(CacheClientConstant.MODE_NAME).errorf("action:initSecretCacheClient", e);
                if (judgeSkipRefreshException(e)) {
                    throw e;
                }
            }
            storeAndRefresh(secretName, secretInfo);
        }
        monitorThread = new Thread(new MonitorRefreshSecretTask());
        monitorThread.start();
        CommonLogger.getCommonLogger(CacheClientConstant.MODE_NAME).infof("secretCacheClient init success");
    }