|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventhandling.DefaultClusterMetaData
public class DefaultClusterMetaData
Default implementation of ClusterMetaData. It is backed by a ConcurrentHashMap but allows the storage of null
values. null
keys are not allowed.
Constructor Summary | |
---|---|
DefaultClusterMetaData()
|
Method Summary | |
---|---|
Object |
getProperty(String key)
Returns the property stored using the given key . |
boolean |
isPropertySet(String key)
Indicates whether a value is stored under the given key . |
void |
removeProperty(String key)
Removes the value store under the given key . |
void |
setProperty(String key,
Object value)
Stores a property value under the given key . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClusterMetaData()
Method Detail |
---|
public Object getProperty(String key)
ClusterMetaData
key
. If no property has been stored using that key, it
returns null
.
getProperty
in interface ClusterMetaData
key
- The key under which the property was stored
key
public void setProperty(String key, Object value)
ClusterMetaData
value
under the given key
.
setProperty
in interface ClusterMetaData
key
- the key under which to store a valuevalue
- the value to storepublic void removeProperty(String key)
ClusterMetaData
key
. If no such value is available, nothing happens.
removeProperty
in interface ClusterMetaData
key
- the key to removepublic boolean isPropertySet(String key)
ClusterMetaData
key
. Will also return true
if a null
value is stored under the given key
.
isPropertySet
in interface ClusterMetaData
key
- The key to find
true
if a value was stored under the given key
, otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |