org.kuali.common.util.runonce.RunOnceStateManager Maven / Gradle / Ivy
package org.kuali.common.util.runonce;
public interface RunOnceStateManager {
/**
* Do whatever needs to be done in order for isRunOnce()
to return the right value.
*/
void initialize();
/**
* Return true if it is safe to run something once, false otherwise.
*/
boolean isRunOnce();
/**
* Update state in a way that persists across JVM restarts (eg database table, properties file, etc)
*/
void persistState(RunOnceState state);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy