Interface CriticalDataListener

All Known Implementing Classes:
CriticalDataSerialNumberProvider

public interface CriticalDataListener
Listener for critical data service events.
Version:
2024-06-24
  • Method Details

    • onCriticalDataAvailable

      void onCriticalDataAvailable(CriticalDataService service)
      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
    • onCriticalDataUnavailable

      void onCriticalDataUnavailable()
      Notify the listener that there is no critical data available. This is called at most one time if we can't find any valid sources of critical data. This is the result of enough sources registering that a choice must be made, but no source has valid critical data.
    • onCriticalDataChanged

      void onCriticalDataChanged(CriticalDataService service, String name, Object data)
      Notify the listener that the critical data just changed. This is called any time setCriticalData()) is called. If setAllCriticalData() is called, name will be CriticalData.ALL_DATA and data will be JsonNode representing all the critical data. param service the critical data service
      Parameters:
      name - the name of the modified critical data
      data - the object used to set the data