mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
2022-11 spring-42-rabbit updated fixedRate for AppUserActivityStatCalculation
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ public class ActivityStatCalculationEmitterSerivce {
|
|||||||
|
|
||||||
private final RabbitTemplate rabbitTemplate;
|
private final RabbitTemplate rabbitTemplate;
|
||||||
|
|
||||||
@Scheduled(initialDelay = 3000, fixedRate = 1000)
|
@Scheduled(initialDelay = 3000, fixedRate = 10000)
|
||||||
public void emitAppUserActivityStatCalculation(){
|
public void emitAppUserActivityStatCalculation(){
|
||||||
rabbitTemplate.convertAndSend(USER_ACTIVITY_STAT_ROUTING_KEY, CALC_STAT_COMMAND);
|
rabbitTemplate.convertAndSend(USER_ACTIVITY_STAT_ROUTING_KEY, CALC_STAT_COMMAND);
|
||||||
System.out.println("Stat calculated!!!");
|
System.out.println("Stat calculated!!!");
|
||||||
|
|||||||
Reference in New Issue
Block a user