Interface Handler<C extends Configuration,E extends Event>
-
- All Known Implementing Classes:
AlertManagerHandler,HTTPForwardHandler,LocalIoTDBHandler,MQTTForwardHandler,MQTTHandler
public interface Handler<C extends Configuration,E extends Event>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()voidonEvent(E event)default voidonEvent(java.util.List<E> events)default voidopen(C configuration)
-
-
-
Method Detail
-
open
default void open(C configuration) throws java.lang.Exception
- Throws:
java.lang.Exception
-
close
default void close() throws java.lang.Exception- Throws:
java.lang.Exception
-
onEvent
void onEvent(E event) throws java.lang.Exception
- Throws:
java.lang.Exception
-
onEvent
default void onEvent(java.util.List<E> events) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-