org.jboss.cache
Class Modification

java.lang.Object
org.jboss.cache.Modification

All Implemented Interfaces:

java.io.Externalizable, java.io.Serializable

public class Modification

extends java.lang.Object

implements java.io.Externalizable

Represents a modification in the cache. Contains the nature of the modification
(e.g. PUT, REMOVE), the fqn of the node, the new value and the previous value.
A list of modifications will be sent to all nodes in a cluster when a transaction
has been committed (PREPARE phase). A Modification is also used to roll back changes,
e.g. since we know the previous value, we can reconstruct the previous state by
applying the changes in a modification listin reverse order.