StreamProperties¶
-
public class
StreamProperties
¶ This class collects a set of stream properties a user intend to apply to a stream.
Methods¶
add¶
-
public StreamProperties
add
(StreamProperty streamProperty, String value)¶ Add a new property
Parameters: - streamProperty – the stream property to update
- value – the value to be set for this property
Returns: this StreamProperties so you can chain more properties to add
get¶
-
public String
get
(StreamProperty property)¶ Get the specified property value
Parameters: - property – the stream property key
Returns: the specified property value(or null if the key was not found)
getAll¶
-
public Properties
getAll
()¶ Get all added properties
Returns: the added properties
remove¶
-
public String
remove
(StreamProperty streamProperty)¶ Remove the specified property
Parameters: - streamProperty – the property to remove
Returns: value of the removed property, or null if this property was not found