net.anotheria.anoprise.processor.PackageWorker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ano-prise Show documentation
Show all versions of ano-prise Show documentation
Collection of utils for different enterprise class projects. Among other stuff contains
Caches, Mocking, DualCrud, MetaFactory and SessionDistributorService. Visit https://opensource.anotheria.net for details.
package net.anotheria.anoprise.processor;
import java.util.List;
/**
* Interface for a worker class which performs operation on package from elements.
* @author dmetelin
*
* @param
*/
public interface PackageWorker {
/**
* Called to perform some work.
* @param workingElement
* @throws Exception
*/
void doWork(List workingPackage) throws Exception;
/**
* Returns the maximal possible capacity of the package that can be worked. This
* doesn't guarantee the exact size of the package.
*
* @return the maximal possible capacity of the package to be worked
*/
int packageCapacity();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy