org.apache.geronimo.messaging.replication
Class SimpleReplicatedMap.MapUpdateEvent

java.lang.Object
  extended byorg.apache.geronimo.messaging.replication.SimpleReplicatedMap.MapUpdateEvent
All Implemented Interfaces:
Externalizable, Serializable, UpdateEvent
Enclosing class:
SimpleReplicatedMap

public static class SimpleReplicatedMap.MapUpdateEvent
extends Object
implements UpdateEvent

See Also:
Serialized Form

Field Summary
static int CLEAR
           
static int PUT
           
static int PUTALL
           
static int REMOVE
           
 
Constructor Summary
SimpleReplicatedMap.MapUpdateEvent()
          Required for Externalization.
SimpleReplicatedMap.MapUpdateEvent(int anId, Object aTarget)
           
SimpleReplicatedMap.MapUpdateEvent(int anId, Object aTarget, Object aKey, Object aValue)
           
SimpleReplicatedMap.MapUpdateEvent(Map aMap, Object aTarget)
           
 
Method Summary
 int getId()
          Gets the event identifier.
 Object getTarget()
          Gets the target of the event.
 void readExternal(ObjectInput in)
           
 void setTarget(Object aTarget)
          Sets the target of this event.
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLEAR

public static final int CLEAR
See Also:
Constant Field Values

PUT

public static final int PUT
See Also:
Constant Field Values

PUTALL

public static final int PUTALL
See Also:
Constant Field Values

REMOVE

public static final int REMOVE
See Also:
Constant Field Values
Constructor Detail

SimpleReplicatedMap.MapUpdateEvent

public SimpleReplicatedMap.MapUpdateEvent()
Required for Externalization.


SimpleReplicatedMap.MapUpdateEvent

public SimpleReplicatedMap.MapUpdateEvent(int anId,
                                          Object aTarget)

SimpleReplicatedMap.MapUpdateEvent

public SimpleReplicatedMap.MapUpdateEvent(int anId,
                                          Object aTarget,
                                          Object aKey,
                                          Object aValue)

SimpleReplicatedMap.MapUpdateEvent

public SimpleReplicatedMap.MapUpdateEvent(Map aMap,
                                          Object aTarget)
Method Detail

getId

public int getId()
Description copied from interface: UpdateEvent
Gets the event identifier.

Specified by:
getId in interface UpdateEvent
Returns:
Event identifier.

getTarget

public Object getTarget()
Description copied from interface: UpdateEvent
Gets the target of the event. It must be the ReplicationCapable which has been updated.

Specified by:
getTarget in interface UpdateEvent
Returns:
Instance which has been updated.

setTarget

public void setTarget(Object aTarget)
Description copied from interface: UpdateEvent
Sets the target of this event.

Specified by:
setTarget in interface UpdateEvent
Parameters:
aTarget - Instance which has been updated.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.