|
|||||||||||
| 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 ReplicationCapableanID - Identifier.public Object getID()
ReplicationCapable
getID in interface ReplicationCapablepublic void addUpdateListener(UpdateListener aListener)
ReplicationCapable
addUpdateListener in interface ReplicationCapableaListener - Listener to be notified when an update is performed
on this instance.public void removeUpdateListener(UpdateListener aListener)
ReplicationCapable
removeUpdateListener in interface ReplicationCapableaListener - Listener to be removed.
public void mergeWithUpdate(UpdateEvent anEvent)
throws ReplicationException
ReplicationCapable
mergeWithUpdate in interface ReplicationCapableanEvent - UpdateEvent to be merged with this instance.
ReplicationException - Indicates that the merge can not be
performed.public void clear()
clear in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Set entrySet()
entrySet in interface Mappublic boolean equals(Object obj)
equals in interface Mappublic Object get(Object key)
get in interface Mappublic int hashCode()
hashCode in interface Mappublic boolean isEmpty()
isEmpty in interface Mappublic Set keySet()
keySet in interface Map
public Object put(Object key,
Object value)
put in interface Mappublic void putAll(Map t)
putAll in interface Mappublic Object remove(Object key)
remove in interface Mappublic int size()
size in interface Mappublic Collection values()
values in interface Map
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||