The app emitts events for created / deleted users
[demos/kafka/outbox] / src / main / java / de / juplo / boot / data / jdbc / UserEvent.java
1 package de.juplo.boot.data.jdbc;
2
3 import org.springframework.context.ApplicationEvent;
4
5
6 public class UserEvent extends ApplicationEvent
7 {
8     public enum Type { CREATED, LOGIN, LOGOUT, DELETED }
9
10     final Type type;
11     final String user;
12
13
14     public UserEvent(Object source, Type type, String user)
15     {
16         super(source);
17         this.type = type;
18         this.user = user;
19     }
20 }