public void stop() { NonStopConfiguration configuration = nonStopConfigManager.deregisterForThread(); if (configuration != null && configuration.isEnabled()) { nonStopManager.finish(); } }
public void start(NonStopConfiguration configuration) { nonStopConfigManager.registerForThread(configuration); if (configuration.isEnabled()) { nonStopManager.begin(configuration.getTimeoutMillis()); } }