
io.numaproj.numaflow.sinker.Response 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.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class Response {
private final String id;
private final Boolean success;
private final String err;
public static Response responseOK(String id) {
return new Response(id, true, null);
}
public static Response responseFailure(String id, String errMsg) {
return new Response(id, false, errMsg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy