public interface ThresholdStateMonitor
Modifier and Type | Method and Description |
---|---|
void |
reinitializeState(String stateKey)
Reinitialize a single state identified by the given key.
|
void |
reinitializeStates()
Reinitialize all states currently tracked by this monitor.
|
void |
trackState(String key,
ReinitializableState state)
Track the given state identified by the given key.
|
void |
withReadLock(Runnable r)
Run some arbitrary code while holding the lock to the state monitor.
|
void trackState(String key, ReinitializableState state)
void withReadLock(Runnable r)
code
is running.void reinitializeState(String stateKey)
void reinitializeStates()
Copyright © 2021. All rights reserved.