com.vmware.l10n.crons.SourceCollectCacheCron Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of singleton-manager-l10n Show documentation
Show all versions of singleton-manager-l10n Show documentation
A service that provides support for Software Internationalization and Localization
/*
* Copyright 2019-2022 VMware, Inc.
* SPDX-License-Identifier: EPL-2.0
*/
package com.vmware.l10n.crons;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import com.vmware.l10n.source.service.SourceService;
/**
*
* This class used to scheduled merge the collection source to cached file
*
*/
@Service
public class SourceCollectCacheCron {
private final static long ONESECOND = 1000;
@Autowired
private SourceService sourceService;
/**
* merge the collection source to cached file
*/
@Scheduled(fixedDelay = ONESECOND)
public void syncSourceToLocalBundleCron() {
sourceService.writeSourceToCachedFile();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy