public class SynchronizedAttributeAccessor extends Object implements org.springframework.core.AttributeAccessor
AttributeAccessor
that synchronizes on a mutex (not this) before
modifying or accessing the underlying attributes.Constructor and Description |
---|
SynchronizedAttributeAccessor() |
Modifier and Type | Method and Description |
---|---|
String[] |
attributeNames() |
boolean |
equals(Object other) |
Object |
getAttribute(String name) |
boolean |
hasAttribute(String name) |
int |
hashCode() |
Object |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
Object |
setAttributeIfAbsent(String name,
Object value)
Additional support for atomic put if absent.
|
String |
toString() |
public String[] attributeNames()
attributeNames
in interface org.springframework.core.AttributeAccessor
public Object getAttribute(String name)
getAttribute
in interface org.springframework.core.AttributeAccessor
public boolean hasAttribute(String name)
hasAttribute
in interface org.springframework.core.AttributeAccessor
public Object removeAttribute(String name)
removeAttribute
in interface org.springframework.core.AttributeAccessor
public void setAttribute(String name, Object value)
setAttribute
in interface org.springframework.core.AttributeAccessor
public Object setAttributeIfAbsent(String name, Object value)
name
- the key for the attribute namevalue
- the value of the attributeCopyright © 2014 Pivotal. All rights reserved.