Last active
July 29, 2023 16:48
-
-
Save centralhardware/5af391d78db1e0ceff92c43f28e08746 to your computer and use it in GitHub Desktop.
scheduled fixed rate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@RequiredArgsConstructor | |
@Slf4j | |
public class Scheduler { | |
@Scheduled(fixedRate = 10, timeUnit = TimeUnit.MINUTES) | |
public void getAnalyzer() throws IOException { | |
log.info("Start update lucene index"); | |
log.info("Finish update lucene index"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment