We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/adrianmikula/JakartaMigration'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
ExampleScheduledService.java•740 B
package adrianmikula.projectname.service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
/**
* Example scheduled task service.
* This is a template example - replace with your own scheduled tasks.
*/
@Service
@Slf4j
public class ExampleScheduledService {
/**
* Example scheduled task - runs every 5 minutes.
* Use @Scheduled with fixedDelay, fixedRate, or cron expressions.
*/
@Scheduled(fixedDelayString = "${app.example.task.interval-ms:300000}", initialDelay = 30000)
public void scheduledTask() {
log.info("Example scheduled task executed");
// Add your scheduled task logic here
}
}