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.

Example

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);
	streamAdmin.close();				
}

The Javadoc is located here.