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

org.kuali.common.util.runonce.RunOnceStateManager Maven / Gradle / Ivy

There is a newer version: 4.4.17
Show newest version
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