Methods Summary |
---|
public void | applyDiff(byte[] diff, int offset, int length)Applies a diff to an existing object.
|
public byte[] | getDiff()Returns a diff and sets the dirty map to false
|
public long | getVersion()For accuracy checking, a serialized attribute can contain a version number
This number increases as modifications are made to the data.
The replicated map can use this to ensure accuracy on a periodic basis
|
public boolean | isDiffable()If this returns true, the map will extract the diff using getDiff()
Otherwise it will serialize the entire object.
|
public boolean | isDirty()Has the object changed since last replication
and is not in a locked state
|
public void | lock()Lock during serialization
|
public void | resetDiff()Resets the current diff state and resets the dirty flag
|
public void | setOwner(java.lang.Object owner)This method is called after the object has been
created on a remote map. On this method,
the object can initialize itself for any data that wasn't
|
public void | setVersion(long version)Forces a certain version to a replicated map entry
|
public void | unlock()Unlock after serialization
|