Package com.carfey.ops.event.dispatch
Interface EventHook
-
- All Known Implementing Classes:
RESTfulEventHook,SlackEventHook,StandardOutputStreamsEventHook
public interface EventHookInstances of this class can be registered with
EventHooks, and they will be invoked for every notification event that occurs on the running node.This is typically used for custom notifications (e.g.
SlackEventHook), but could also be used for logging, etc.- Since:
- 4.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddispatch(Event event)This method is invoked for each event, regardless of level or category.default java.lang.Stringname()
-
-
-
Method Detail
-
dispatch
void dispatch(Event event) throws java.lang.Exception
This method is invoked for each event, regardless of level or category. Implementors must handle filtering which events require processing depending on theLevelandCategory.- Throws:
java.lang.Exception
-
name
default java.lang.String name()
-
-