net.sf.jabb.util.parallel.LoadDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jabb-core-java8 Show documentation
Show all versions of jabb-core-java8 Show documentation
Additions to jabb-core that require Java 8
package net.sf.jabb.util.parallel;
/**
* A dispatcher that can dispatch work load and get result.
* The implementation can be a direct dispatcher to queue service, a non-clustered load balancer, or a clustered load balancer.
* @author James Hu
*
* @param Work load
* @param Result
*/
public interface LoadDispatcher {
/**
* Dispatch the work load
* @param load the work load
* @return the result of the dispatching
*/
public abstract R dispatch(L load);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy