17 lines
383 B
Java
17 lines
383 B
Java
package net.mguenther.gtd.domain;
|
|
|
|
import net.mguenther.gtd.domain.event.ItemEvent;
|
|
|
|
import java.util.concurrent.CompletableFuture;
|
|
|
|
/**
|
|
* Consumes {@code ItemEvent}s and acts upon them.
|
|
*
|
|
* @author Markus Günther (markus.guenther@gmail.com)
|
|
* @author Boris Fresow (bfresow@gmail.com)
|
|
*/
|
|
public interface EventHandler {
|
|
|
|
CompletableFuture<Void> onEvent(ItemEvent event);
|
|
}
|