sirius.kernel.commons.Callback Maven / Gradle / Ivy
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.kernel.commons;
/**
* Provides a simple callback which can be invoked with a value of the given type.
*
* @param the type of the object passed to the callback
*/
public interface Callback {
/**
* Invokes the callback with value
*
* @param value the value to supply to the callback.
* @throws Exception The callee may throw any exception during the computation. Therefore the caller should
* implement proper error handling without relying on specific exception types.
*/
void invoke(T value) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy