com.github.hekonsek.vertx.pipes.Pipe Maven / Gradle / Ivy
package com.github.hekonsek.vertx.pipes;
import lombok.Data;
import java.util.Map;
import static java.util.Collections.emptyMap;
@Data
public class Pipe {
private final String id;
private final String source;
private final String function;
private final String target;
private final Map configuration;
public static Pipe pipe(String id, String source, String function) {
return pipe(id, source, function, null);
}
public static Pipe pipe(String id, String source, String function, String target) {
return new Pipe(id, source, function, target, emptyMap());
}
}