Interface AlarmQueryProvider


public interface AlarmQueryProvider
This interface can be implemented by an AlarmProvider in order to provide the ability to query alarm status from a different source than the main alarm state model maintained by the gateway.
  • Method Details

    • acknowledge

      default Set<UUID> acknowledge(Collection<UUID> uuids, EventData ackData)
      Default bulk acknowledge implementation
      Parameters:
      uuids - IDs of alarm events
      ackData - Associated data for ack
      Returns:
      Set of UUIDs that weren't found
    • acknowledge

      boolean acknowledge(UUID eventId, EventData ackData)
    • query

      Queries the status of the alarms, given the filter. Given the filter, the query may not apply at all to this provider- it is the provider's responsibility to determine this. However, even if the query doesn't apply, the provider is expected to return an empty result set, not null.