org.infinispan.atomic
Class AtomicHashMapDelta

java.lang.Object
  extended by org.infinispan.atomic.AtomicHashMapDelta
All Implemented Interfaces:
Externalizable, Serializable, Delta

public class AtomicHashMapDelta
extends Object
implements Delta

Changes that have occured on an AtomicHashMap

Since:
4.0
Author:
Manik Surtani (manik AT jboss DOT org)
See Also:
Serialized Form

Constructor Summary
AtomicHashMapDelta()
           
 
Method Summary
 void addOperation(Operation o)
           
 int getChangeLogSize()
           
 DeltaAware merge(DeltaAware d)
          Merge the current set of deltas with a given DeltaAware instance, and return a coherent and complete DeltaAware instance.
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtomicHashMapDelta

public AtomicHashMapDelta()
Method Detail

merge

public DeltaAware merge(DeltaAware d)
Description copied from interface: Delta
Merge the current set of deltas with a given DeltaAware instance, and return a coherent and complete DeltaAware instance. Implementations should be able to deal with null values passed in, or values of a different type from the expected DeltaAware instance. Usually the approach would be to ignore what is passed in, create a new instance of the DeltaAware implementation that the current Delta implementation is written for, apply changes and pass it back.

Specified by:
merge in interface Delta
Parameters:
d - instance to merge with, or null if no merging is needed
Returns:
a fully coherent and usable instance of DeltaAware which may or may not be the same instance passed in

addOperation

public void addOperation(Operation o)

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

toString

public String toString()
Overrides:
toString in class Object

getChangeLogSize

public int getChangeLogSize()


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.