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

net.contextfw.web.commons.cloud.internal.mongo.ExceptionSafeExecution Maven / Gradle / Ivy

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