Interface CriticalDataListener
- All Known Implementing Classes:
CriticalDataSerialNumberProvider
public interface CriticalDataListener
Listener for critical data service events.
- Version:
- 2024-06-24
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotify the listener that we have consensus on our critical data.voidonCriticalDataChanged(CriticalDataService service, String name, Object data) Notify the listener that the critical data just changed.voidNotify the listener that there is no critical data available.
-
Method Details
-
onCriticalDataAvailable
Notify the listener that we have consensus on our critical data. This is called at most one time once we figure out our critical data. It's possible this is never called because no critical data is found in any of the sources.- Parameters:
service- the critical data service
-
onCriticalDataChanged
Notify the listener that the critical data just changed. This is called any timesetCriticalData()) is called. IfsetAllCriticalData()is called, name will beCriticalData.ALL_DATAand data will beJsonNoderepresenting all the critical data. param service the critical data service- Parameters:
name- the name of the modified critical datadata- the object used to set the data
-