![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.jabb.txsdp.SimpleBatchProcessor 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
The newest version!
package net.sf.jabb.txsdp;
import java.util.ArrayList;
/**
* Equivalent to Azure IEventProcessor
and AWS IRecordProcessor
* @author James Hu
* @param type of the data item/message
*/
@FunctionalInterface
public interface SimpleBatchProcessor {
/**
* Process a batch of data.
* @param context the context of this batch/transaction
* @param data List of all the data items, can be empty, never be null. It is of ArrayList type for better performance.
* @return true if the batch finished successfully, false otherwise.
*/
boolean process(ProcessingContext context, ArrayList data);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy