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

net.anotheria.anoprise.processor.PackageWorker Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.0
Show newest version
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