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

io.numaproj.numaflow.batchmapper.BatchResponses Maven / Gradle / Ivy

The newest version!
package io.numaproj.numaflow.batchmapper;

import java.util.ArrayList;
import java.util.List;

/**
 * BatchResponses is used to send a response from the batch map functions.
 * It contains a list of BatchResponse objects.
 */
public class BatchResponses {
    private final List batchResponses;

    /**
     * Constructs an empty BatchResponses object.
     */
    public BatchResponses() {
        this.batchResponses = new ArrayList<>();
    }

    /**
     * Appends a BatchResponse to the list of batchResponses.
     *
     * @param batchResponse the BatchResponse to be added
     *
     * @return the current BatchResponses object
     */
    public BatchResponses append(BatchResponse batchResponse) {
        this.batchResponses.add(batchResponse);
        return this;
    }

    /**
     * Retrieves the list of BatchResponse objects.
     *
     * @return the list of BatchResponse objects
     */
    public List getItems() {
        return batchResponses;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy