/** * Creates the Stream. This method will invoke the remote server and create a stream * @return StreamDefinition to allow deploying operations on the created Stream */ private StreamDefinition create() { return new StreamDefinition(this.name, this.client, this.definition, this.applications); }
/** * Creates the Stream. This method will invoke the remote server and create a stream * @return StreamDefinition to allow deploying operations on the created Stream */ private StreamDefinition create() { return new StreamDefinition(this.name, this.client, this.definition, this.applications); }
/** * Creates the Stream. This method will invoke the remote server and create a stream * @return StreamDefinition to allow deploying operations on the created Stream */ public StreamDefinition create() { return new StreamDefinition(this.name, this.client, this.definition, Collections.emptyList()); } }
/** * Creates the Stream. This method will invoke the remote server and create a stream * @return StreamDefinition to allow deploying operations on the created Stream */ public StreamDefinition create() { return new StreamDefinition(this.name, this.client, this.definition, Collections.emptyList()); } }
/** * Undeploy the current {@link Stream}. This method invokes the remote server * @return A reference the the {@link StreamDefinition} so one can invoke other builder operations such as {@link StreamDefinition#deploy()} */ public StreamDefinition undeploy() { client.streamOperations().undeploy(this.name); return new StreamDefinition(this.name, this.client, this.definition, this.applications); }
/** * Undeploy the current {@link Stream}. This method invokes the remote server * @return A reference the the {@link StreamDefinition} so one can invoke other builder operations such as {@link StreamDefinition#deploy()} */ public StreamDefinition undeploy() { client.streamOperations().undeploy(this.name); return new StreamDefinition(this.name, this.client, this.definition, this.applications); }