use of org.olat.core.commons.services.taskexecutor.model.DBSecureRunnable in project OpenOLAT by OpenOLAT.
the class MailManagerImpl method sendMessageAsync.
@Override
public void sendMessageAsync(MailBundle... bundles) {
try {
SendMail sendMail = new SendMail(bundles);
DBSecureRunnable command = new DBSecureRunnable(sendMail);
asyncExecutor.execute(command);
} catch (RejectedExecutionException e) {
log.error("Queue full, email lost", e);
} catch (Exception e) {
log.error("", e);
}
}
use of org.olat.core.commons.services.taskexecutor.model.DBSecureRunnable in project openolat by klemens.
the class MailManagerImpl method sendMessageAsync.
@Override
public void sendMessageAsync(MailBundle... bundles) {
try {
SendMail sendMail = new SendMail(bundles);
DBSecureRunnable command = new DBSecureRunnable(sendMail);
asyncExecutor.execute(command);
} catch (RejectedExecutionException e) {
log.error("Queue full, email lost", e);
} catch (Exception e) {
log.error("", e);
}
}
Aggregations