org.mockserver.stop.Stop Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
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