
public interface ClearAlertHandler extends AlertHandler
Alert clearing.
Objects on the Agent ComponentLookup that implement this interface are automatically
registered as clear alert handlers. Multiple handlers can be registered
for a given Agent.
ClearAlertHandlers will be called back with the instance of the Alert to be cleared
and its AlertState.
The handler has to assess if it is ok to clear the given Alert by first
deciding if the given Alert can be cleared by the handler.
When clearing an Alert instance the handlers will be called in order and depending
on the return code the following actions will be taken:
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClearAlertHandler.ClearAlertCode
Enumeration of codes returned when the canClearAlert method is invoked.
|
| Modifier and Type | Method and Description |
|---|---|
default ClearAlertHandler.ClearAlertCode |
canClearAlert(Alert alert,
AlertState alertState)
Callback to clear an
Alert instance. |
default ClearAlertHandler.ClearAlertCode canClearAlert(Alert alert, AlertState alertState)
Alert instance.
Return a ClearAlertCode for the provided Alert.alert - The Alert instance to clear.alertState - The AlertState for the provided Alert.Copyright © 2021 LSST. All rights reserved.