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

io.numaproj.numaflow.sinker.Response Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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