org.kuali.common.util.runonce
Interface RunOnceStateManager

All Known Implementing Classes:
PropertiesFileStateManager

public interface RunOnceStateManager


Method Summary
 void initialize()
          Do whatever needs to be done in order for isRunOnce() to return the right value.
 boolean isRunOnce()
          Return true if it is safe to run something once, false otherwise.
 void persistState(RunOnceState state)
          Update state in a way that persists across JVM restarts (eg database table, properties file, etc)
 

Method Detail

initialize

void initialize()
Do whatever needs to be done in order for isRunOnce() to return the right value.


isRunOnce

boolean isRunOnce()
Return true if it is safe to run something once, false otherwise.


persistState

void persistState(RunOnceState state)
Update state in a way that persists across JVM restarts (eg database table, properties file, etc)



Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.