All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.javalin.core.event.EventHandler Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
/*
 * Javalin - https://javalin.io
 * Copyright 2017 David Åse
 * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
 */

package io.javalin.core.event;

/**
 * Main interface for Lifecycle Event Handlers. A Runnable does not suffice because
 * the an event handler may throw a checked exception.
 *
 * @see Lifecycle Events in documentation
 */
@FunctionalInterface
public interface EventHandler {
    void handleEvent() throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy