Interface ThresholdStateMonitor

  • All Known Implementing Classes:
    BlobStoreAwareMonitor

    public interface ThresholdStateMonitor
    An interface for tracking and reinitializing the in-memory values of thresholding states.
    • Method Detail

      • trackState

        void trackState​(java.lang.String key,
                        ReinitializableState state)
        Track the given state identified by the given key.
      • withReadLock

        void withReadLock​(java.lang.Runnable r)
        Run some arbitrary code while holding the lock to the state monitor. This is used to block reinitialization while the given code is running.
      • reinitializeState

        void reinitializeState​(java.lang.String stateKey)
        Reinitialize a single state identified by the given key.
      • reinitializeStates

        void reinitializeStates()
        Reinitialize all states currently tracked by this monitor.