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

io.github.espresso4j.espresso.Espresso Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
package io.github.espresso4j.espresso;

import java.util.function.Consumer;

/**
 * The core function of Espresso.
 *
 * It take a request object and returns a response.
 * 
 */
@FunctionalInterface
public interface Espresso {

    Response call(Request request);

    @FunctionalInterface
    interface Async {
        void call(Request request, Consumer sendResponse, Consumer raiseException);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy