org.infinispan.atomic
Class AtomicHashMapDelta
java.lang.Object
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)
AtomicHashMapDelta
public AtomicHashMapDelta()
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)
toString
public String toString()
- Overrides:
toString
in class Object
getChangeLogSize
public int getChangeLogSize()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.