public StreamDefinition(String name, DataFlowOperations client, String definition, List<StreamApplication> applications) { this.name = name; this.client = client; this.definition = definition; this.applications = applications; if (StringUtils.isEmpty(definition)) { createStreamDefinition(); } this.client.streamOperations().createStream(this.name, this.definition, false); }
public StreamDefinition(String name, DataFlowOperations client, String definition, List<StreamApplication> applications) { this.name = name; this.client = client; this.definition = definition; this.applications = applications; if (StringUtils.isEmpty(definition)) { createStreamDefinition(); } this.client.streamOperations().createStream(this.name, this.definition, false); }