Buisness logic docs updated
This commit is contained in:
@ -12,6 +12,9 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
|
||||
import org.springframework.scheduling.support.CronTrigger;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* Service to manage app events
|
||||
*/
|
||||
@Service
|
||||
public class EventService {
|
||||
|
||||
@ -29,6 +32,9 @@ public class EventService {
|
||||
System.out.println("Checking for groups");
|
||||
}
|
||||
|
||||
/**
|
||||
* perfroms checks for matching exchanges daily
|
||||
*/
|
||||
@Scheduled(cron = "0 0 0 * * *")
|
||||
public void performExchangeService() {
|
||||
System.out.println("Performing Exchange");
|
||||
@ -53,6 +59,10 @@ public class EventService {
|
||||
jobsMap.put(taskId, scheduledTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* init resources needed for dynamicly creating new tasks (needed to set tours
|
||||
* end events)
|
||||
*/
|
||||
@PostConstruct
|
||||
public void initialize() {
|
||||
this.scheduler = new ThreadPoolTaskScheduler();
|
||||
|
Reference in New Issue
Block a user