|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.messaging.replication.SimpleReplicatedMap
A simple Map, which is ReplicationCapable aware.
Nested Class Summary | |
static class |
SimpleReplicatedMap.MapUpdateEvent
|
Nested classes inherited from class java.util.Map |
Map.Entry |
Constructor Summary | |
SimpleReplicatedMap()
|
Method Summary | |
void |
addUpdateListener(UpdateListener aListener)
Adds an UpdateEvent listener. |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
boolean |
equals(Object obj)
|
Object |
get(Object key)
|
Object |
getID()
Identifier of this ReplicationCapable. |
int |
hashCode()
|
boolean |
isEmpty()
|
Set |
keySet()
|
void |
mergeWithUpdate(UpdateEvent anEvent)
Merges an UpdateEvent with the state of this instance. |
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
void |
removeUpdateListener(UpdateListener aListener)
Removes the specified UpdateListener. |
void |
setID(Object anID)
Sets the identifier of this instance in the scope of the replication group managing it. |
int |
size()
|
Collection |
values()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleReplicatedMap()
Method Detail |
public void setID(Object anID)
ReplicationCapable
setID
in interface ReplicationCapable
anID
- Identifier.public Object getID()
ReplicationCapable
getID
in interface ReplicationCapable
public void addUpdateListener(UpdateListener aListener)
ReplicationCapable
addUpdateListener
in interface ReplicationCapable
aListener
- Listener to be notified when an update is performed
on this instance.public void removeUpdateListener(UpdateListener aListener)
ReplicationCapable
removeUpdateListener
in interface ReplicationCapable
aListener
- Listener to be removed.public void mergeWithUpdate(UpdateEvent anEvent) throws ReplicationException
ReplicationCapable
mergeWithUpdate
in interface ReplicationCapable
anEvent
- UpdateEvent to be merged with this instance.
ReplicationException
- Indicates that the merge can not be
performed.public void clear()
clear
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public boolean equals(Object obj)
equals
in interface Map
public Object get(Object key)
get
in interface Map
public int hashCode()
hashCode
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public Set keySet()
keySet
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public void putAll(Map t)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public int size()
size
in interface Map
public Collection values()
values
in interface Map
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |