use of lucee.runtime.spooler.SpoolerEngine in project Lucee by lucee.
the class Admin method doGetMailSetting.
/**
* @throws PageException
*/
private void doGetMailSetting() throws PageException {
Struct sct = new StructImpl();
pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
int maxThreads = 20;
SpoolerEngine engine = config.getSpoolerEngine();
if (engine instanceof SpoolerEngineImpl) {
maxThreads = ((SpoolerEngineImpl) engine).getMaxThreads();
}
sct.set("spoolEnable", Caster.toBoolean(config.isMailSpoolEnable()));
sct.set("spoolInterval", Caster.toInteger(config.getMailSpoolInterval()));
sct.set("maxThreads", Caster.toDouble(maxThreads));
sct.set("timeout", Caster.toInteger(config.getMailTimeout()));
sct.set("defaultencoding", config.getMailDefaultCharset().name());
}
use of lucee.runtime.spooler.SpoolerEngine in project Lucee by lucee.
the class Admin method doGetTaskSetting.
private void doGetTaskSetting() throws PageException {
Struct sct = new StructImpl();
pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
int maxThreads = 20;
SpoolerEngine engine = config.getSpoolerEngine();
if (engine instanceof SpoolerEngineImpl) {
SpoolerEngineImpl ei = ((SpoolerEngineImpl) engine);
maxThreads = ei.getMaxThreads();
}
sct.set("maxThreads", Caster.toDouble(maxThreads));
}
Aggregations