fr.fezlight.eventsystem.models.EventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-event-system Show documentation
Show all versions of spring-boot-starter-event-system Show documentation
This library is dedicated for Spring Boot application and is an implementation of an event system
integrated with RabbitMQ and Spring-Modulith-Events.
The newest version!
package fr.fezlight.eventsystem.models;
import fr.fezlight.eventsystem.annotation.SubscribeEvent;
/**
* Interface used to implement an event handler.
*
* - {@link EventHandler#handle(Event)} method will receive the event.
*
- {@link EventHandler#getSubscribeEvent()} method needed to retrieve event handler parameters by annotation
*
* @author FezLight
*/
public interface EventHandler {
void handle(E event);
SubscribeEvent getSubscribeEvent();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy