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

it.netgrid.bauer.EventHandler Maven / Gradle / Ivy

package it.netgrid.bauer;

public interface EventHandler {

	public String getName();

	public Class getEventClass();

	/**
	 * Handle return value as:
	 * - FALSE: retry (a temporary error is occurred)
	 * - TRUE: go ahead (success or permanent error is occurred)
	 * 
	 * @param topic
	 * @param event
	 * @return
	 * @throws Exception
	 */
	public boolean handle(String topic, E event) throws Exception;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy