net.pincette.jes.EventToCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pincette-jes Show documentation
Show all versions of pincette-jes Show documentation
JSON Event Sourcing With Kafka and MongoDB
package net.pincette.jes;
import java.util.concurrent.CompletionStage;
import java.util.function.Function;
import javax.json.JsonObject;
/**
* An implementation should create a command from a full event, which has the "_after" and "_before"
* fields. When the function returns null
or a JSON object that is not a command, the
* result will be ignored.
*
* @author Werner Donn\u00e9
* @since 1.0
*/
@FunctionalInterface
public interface EventToCommand extends Function> {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy