All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.l10n.crons.SourceCollectCacheCron Maven / Gradle / Ivy

There is a newer version: 0.7.3
Show newest version
/*
 * 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