net.contextfw.web.commons.cloud.internal.mongo.ExceptionSafeExecution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-commons Show documentation
Show all versions of web-commons Show documentation
Context Web Application Framework
The newest version!
package net.contextfw.web.commons.cloud.internal.mongo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* For internal use only
*/
public abstract class ExceptionSafeExecution implements Runnable {
private static final Logger LOG = LoggerFactory.getLogger(ExceptionSafeExecution.class);
@Override
public final void run() {
try {
execute();
} catch (Exception e) {
LOG.info("Error while execution scheduled task", e);
}
}
public abstract void execute() throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy