Editing the Attributes of a Stream

Use a StreamDescriptor to get the values of the attributes on the stream. Then, after modifying values or setting values for additional attributes, call Admin.editStream(String streamPathAndName, StreamDescriptor desc) to apply the values to the stream.


Admin streamAdmin = Streams.newAdmin(conf);
StreamDescriptor desc = streamAdmin.getStreamDescriptor(streamPathAndName);
public void editStreamUtilFunction(String streamPathAndName, StreamDescriptor desc) throws IllegalArgumentException, IOException{
	Admin streamAdmin = Streams.newAdmin(conf);
	streamAdmin.editStream(streamPathAndName, desc);

The Javadoc is located here.