/** * Creates a {@link org.streampipes.model.output.CustomOutputStrategy}. * @param outputBoth If two input streams are expected by a pipeline element, you can use outputBoth to indicate * whether the properties of both input streams should be available to the pipeline developer for * selection. * @return CustomOutputStrategy */ public static CustomOutputStrategy custom(boolean outputBoth) { return new CustomOutputStrategy(outputBoth); }
/** * Creates a {@link org.streampipes.model.output.CustomOutputStrategy}. Custom output strategies let pipeline * developers decide which events are produced by the corresponding pipeline element. * @return CustomOutputStrategy */ public static CustomOutputStrategy custom() { return new CustomOutputStrategy(); }
public OutputStrategy outputStrategy(OutputStrategy other) { if (other instanceof KeepOutputStrategy) { return new KeepOutputStrategy((KeepOutputStrategy) other); } else if (other instanceof FixedOutputStrategy) { return new FixedOutputStrategy((FixedOutputStrategy) other); } else if (other instanceof ListOutputStrategy) { return new ListOutputStrategy((ListOutputStrategy) other); } else if (other instanceof CustomOutputStrategy) { return new CustomOutputStrategy((CustomOutputStrategy) other); } else if (other instanceof TransformOutputStrategy) { return new TransformOutputStrategy((TransformOutputStrategy) other); } else if (other instanceof CustomTransformOutputStrategy) { return new CustomTransformOutputStrategy((CustomTransformOutputStrategy) other); } else { return new AppendOutputStrategy((AppendOutputStrategy) other); } }