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.
|
boolean |
setAttributes(IAttributeStore values)
Set multiple attributes on this object.
|
boolean |
setAttributes(Map<String,Object> values)
Set multiple attributes on this object.
|
int |
size()
Size of the attribute store.
|
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 attributeboolean setAttributes(Map<String,Object> values)
values - the attributes to setboolean setAttributes(IAttributeStore values)
values - the attributes to setObject getAttribute(String name)
name - the name of the attribute to getObject getAttribute(String name, Object defaultValue)
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 AttributeStoreMXBeanint size()
Copyright © 2005–2017 Red5. All rights reserved.