E - @FunctionalInterface public interface EntityToMessageListTransformer<E> extends java.util.function.BiFunction<java.lang.String,E,java.util.List<? extends Message<?>>>
The transformer is a BiFunction that will get the entity-id and the entity itself as an argument. The entity-id will most likely be used to generate one or more message-keys, while the entity will be used to generate the message payload.