public interface IAttributeStore extends AttributeStoreMXBean
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Return the value for a given attribute.
|
Object |
getAttribute(String name,
Object defaultValue)
Return the value for a given attribute and set it if it doesn't exist.
|
Set<String> |
getAttributeNames()
Get the attribute names.
|
Map<String,Object> |
getAttributes()
Get the attributes.
|
boolean |
hasAttribute(String name)
Check the object has an attribute.
|
boolean |
removeAttribute(String name)
Remove an attribute.
|
void |
removeAttributes()
Remove all attributes.
|
boolean |
setAttribute(String name,
Object value)
Set an attribute on this object.
|
void |
setAttributes(IAttributeStore values)
Set multiple attributes on this object.
|
void |
setAttributes(Map<String,Object> values)
Set multiple attributes on this object.
|
Set<String> getAttributeNames()
getAttributeNames in interface AttributeStoreMXBeanMap<String,Object> getAttributes()
boolean setAttribute(String name, Object value)
name - the name of the attribute to changevalue - the new value of the attributevoid setAttributes(Map<String,Object> values)
values - the attributes to setvoid setAttributes(IAttributeStore values)
values - the attributes to setObject getAttribute(String name)
name - the name of the attribute to getObject getAttribute(String name, Object defaultValue)
This is a utility function that internally performs the following code:
if (!hasAttribute(name)) setAttribute(name, defaultValue);
return getAttribute(name);
name - the name of the attribute to getdefaultValue - the value of the attribute to set if the attribute doesn't
existboolean hasAttribute(String name)
hasAttribute in interface AttributeStoreMXBeanname - the name of the attribute to checkboolean removeAttribute(String name)
removeAttribute in interface AttributeStoreMXBeanname - the name of the attribute to removevoid removeAttributes()
removeAttributes in interface AttributeStoreMXBeanCopyright © 2006-2012 The Red5 Project