org.ak.trafficController.SupplierWhichCanThrowException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of traffic-controller-core Show documentation
Show all versions of traffic-controller-core Show documentation
This deals with different aspects like In memory queue, throttling, event management etc
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