1 package org.kuali.common.util.runonce;
2
3 /**
4 * @deprecated Use org.kuali.common.util.runonce.smart.RunOnce instead
5 */
6 @Deprecated
7 public interface RunOnceStateManager {
8
9 /**
10 * Do whatever needs to be done in order for <code>isRunOnce()</code> to return the right value.
11 */
12 void initialize();
13
14 /**
15 * Return true if it is safe to run something once, false otherwise.
16 */
17 boolean isRunOnce();
18
19 /**
20 * Update state in a way that persists across JVM restarts (eg database table, properties file, etc)
21 */
22 void persistState(RunOnceState state);
23
24 }