Package com.onec.mail.outbox
Class MailOutboxRelayScheduler
java.lang.Object
com.onec.mail.outbox.MailOutboxRelayScheduler
Drives
MailOutboxRelay.relayPending() on a fixed delay so queued mail actually leaves the outbox.
Without this, MailService.queue(...) would persist messages that are never dispatched.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MailOutboxRelayScheduler
-
-
Method Details
-
run
@Scheduled(fixedDelayString="${onec.mail.relay.interval-ms:30000}", initialDelayString="${onec.mail.relay.interval-ms:30000}") public void run()
-