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

io.keen.client.java.KeenCallback Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package io.keen.client.java;

/**
 * An interface to allow callers to receive a callback on success or failure of an operation by the
 * keen client. This is most helpful for asynchronous calls (to detect completion of the
 * operation), but can also be used to be notified of failures, which are normally caught silently
 * by the client to prevent application crashes.
 *
 * @author Kevin Litwack
 * @since 2.0.0
 */
public interface KeenCallback {

    /**
     * Invoked when the requested operation succeeds.
     */
    public void onSuccess();

    /**
     * Invoked when the requested operation fails.
     *
     * @param e An exception indicating the cause of the failure.
     */
    public void onFailure(Exception e);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy