org.infinispan.atomic
Class AtomicHashMapDelta

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

public class AtomicHashMapDelta
extends Object
implements Delta

Changes that have occurred on an AtomicHashMap

Since:
4.0
Author:
Manik Surtani (manik AT jboss DOT org)

Nested Class Summary
static class AtomicHashMapDelta.Externalizer
           
 
Constructor Summary
AtomicHashMapDelta()
           
 
Method Summary
 void addOperation(Operation o)
           
 int getChangeLogSize()
           
 DeltaAware merge(DeltaAware d)
          Merge the current Delta instance with a given DeltaAware instance, and return a coherent and complete DeltaAware instance.
 String toString()
           
 
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 Delta instance 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)

toString

public String toString()
Overrides:
toString in class Object

getChangeLogSize

public int getChangeLogSize()

-->

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