Class BlobStoreAwareMonitor

  • All Implemented Interfaces:
    ThresholdStateMonitor

    public class BlobStoreAwareMonitor
    extends java.lang.Object
    implements ThresholdStateMonitor
    This implementation tracks the in-memory states of thresholds while also being aware of their persistence. This allows for the encapsulation of atomic clear/reinitialize logic where both the in-memory and persisted copies of the state can be cleared together without clients of being aware.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void reinitializeState​(java.lang.String stateKey)
      Reinitialize a single state identified by the given key.
      void reinitializeStates()
      Reinitialize all states currently tracked by this monitor.
      void trackState​(java.lang.String key, ReinitializableState state)
      Track the given state identified by the given key.
      void withReadLock​(java.lang.Runnable r)
      Run some arbitrary code while holding the lock to the state monitor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait