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

org.ak.trafficController.SupplierWhichCanThrowException Maven / Gradle / Ivy

Go to download

This deals with different aspects like In memory queue, throttling, event management etc

There is a newer version: 2.1.0
Show newest version
package org.ak.trafficController;

import java.util.function.Supplier;

/**
 * {@link Supplier} could have been used for majority of cases but if some method throws some exception, we need to catch it there itself. 
 * To overcome this, this new interface will be able to handle such scenarios. 
 * @author amit.khosla
 *
 * @param  Type of data which will be returned by this supplier
 */
public interface SupplierWhichCanThrowException {
	/**
	 * Get the output.
	 * @return T value
	 * @throws Throwable throws when any failure in processing
	 */
	T get() throws Throwable;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy