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

org.mockserver.stop.Stop Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.stop;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author jamesdbloom
 */
public class Stop {

    private static final Logger logger = LoggerFactory.getLogger(Stop.class);

    public static void stopQuietly(Stoppable stoppable) {
        if (stoppable != null) {
            try {
                stoppable.stop();
            } catch (Throwable throwable) {
                logger.debug("Exception stopping " + stoppable, throwable);
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy