Class StreamDefinition
java.lang.Object
org.springframework.cloud.dataflow.rest.client.dsl.StreamDefinition
Represents a stream that has been created but not yet deployed.
{ @code StreamDefinition streamBuilder = Stream.builder(dataFlowOperations).name("ticktock").definition("time | log") .create(); }
- Author:
- Vinicius Carvalho
-
Constructor Summary
ConstructorDescriptionStreamDefinition
(String name, DataFlowOperations client, String definition, String description, List<StreamApplication> applications) -
Method Summary
-
Constructor Details
-
StreamDefinition
public StreamDefinition(String name, DataFlowOperations client, String definition, String description, List<StreamApplication> applications)
-
-
Method Details
-
destroy
public void destroy()Destroy the stream from the server. This method invokes the remote server -
deploy
Deploy the current stream using the deploymentProperties. This method invokes the remote server- Parameters:
deploymentProperties
- Map of properties to be used during deployment- Returns:
- A deployed
Stream
-
deploy
Deploy the current stream without any extra properties- Returns:
- A deployed
Stream
-