org.infinispan.atomic
Interface DeltaAware

All Known Implementing Classes:
AtomicHashMap

public interface DeltaAware

This interface allows the extraction of deltas.

Implementations would be closely coupled to a corresponding Delta implementation, since Delta.merge(DeltaAware) would need to know how to recreate this instance of DeltaAware if needed.

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

Method Summary
 void commit()
          Indicate that all deltas collected to date has been extracted (via a call to delta()) and can be discarded.
 Delta delta()
          Extracts changes made to implementations, in an efficient format that can easily and cheaply be serialized and deserialized.
 

Method Detail

delta

Delta delta()
Extracts changes made to implementations, in an efficient format that can easily and cheaply be serialized and deserialized. This method can only be called once for each changeset as it wipes its internal changelog when generating and submitting the delta to the caller.

Returns:
an instance of Delta

commit

void commit()
Indicate that all deltas collected to date has been extracted (via a call to delta()) and can be discarded.


Google Analytics

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