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

ru.foodtechlab.lib.auth.app.config.scheduler.ConfirmationCodeSchedulers Maven / Gradle / Ivy

The newest version!
package ru.foodtechlab.lib.auth.app.config.scheduler;

import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import ru.foodtechlab.lib.auth.service.domain.confirmationCodeSendingTask.port.ConfirmationCodeTaskBroadcaster;

@EnableScheduling
@RequiredArgsConstructor
@Component
public class ConfirmationCodeSchedulers {

    private final ConfirmationCodeTaskBroadcaster confirmationCodeTaskBroadcaster;

    @Scheduled(fixedDelay = 1000 * 3)
    public void broadcastConfirmationCodes() {
        confirmationCodeTaskBroadcaster.broadcast();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy