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

com.almende.util.callback.AsyncCallback Maven / Gradle / Ivy

/*
 * Copyright: Almende B.V. (2014), Rotterdam, The Netherlands
 * License: The Apache Software License, Version 2.0
 */
package com.almende.util.callback;

/**
 * The Interface AsyncCallback.
 * 
 * @param 
 *            the generic type
 */
public interface AsyncCallback {
	
	/**
	 * On success.
	 * 
	 * @param result
	 *            the result
	 */
	void onSuccess(T result);
	
	/**
	 * On failure.
	 * 
	 * @param exception
	 *            the exception
	 */
	void onFailure(Exception exception);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy