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

net.sf.jabb.txsdp.SimpleBatchProcessor Maven / Gradle / Ivy

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