
io.numaproj.numaflow.sinker.ResponseList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of numaflow-java Show documentation
Show all versions of numaflow-java Show documentation
SDK to implement Numaflow Source or User Defined Functions or Sinks in Java.
package io.numaproj.numaflow.sinker;
import lombok.Builder;
import lombok.Getter;
import lombok.Singular;
import java.util.ArrayList;
import java.util.Collection;
/**
* ResponseList is used to return the list of responses from udsink
*/
@Getter
@Builder(builderMethodName = "newBuilder")
public class ResponseList {
@Singular("addResponse")
private Iterable responses;
public static class ResponseListBuilder {
public ResponseListBuilder addResponses(Iterable responses) {
if (this.responses == null) {
this.responses = new ArrayList<>();
return this;
}
this.responses.addAll((Collection extends Response>) responses);
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy