Class BatchModification
- java.lang.Object
-
- org.infinispan.persistence.support.BatchModification
-
public class BatchModification extends Object
A simple wrapper class, necessary for Transactional stores, which allows MarshalledEntries and Object keys to be passed to a store implementation in order. This class also removes repeated operations on the same key in order to prevent redundant operations on the underlying store. For example a tx, {put(1, "Test"); remove(1);}, will be simply written to the store as {remove(1);}.- Author:
- Ryan Emerson
-
-
Constructor Summary
Constructors Constructor Description BatchModification(Set<Object> affectedKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMarshalledEntry(Object key, MarshalledEntry marshalledEntry)
Set<Object>
getAffectedKeys()
Set<Object>
getKeysToRemove()
Collection<MarshalledEntry>
getMarshalledEntries()
void
removeEntry(Object key)
-
-
-
Method Detail
-
addMarshalledEntry
public void addMarshalledEntry(Object key, MarshalledEntry marshalledEntry)
-
removeEntry
public void removeEntry(Object key)
-
getMarshalledEntries
public Collection<MarshalledEntry> getMarshalledEntries()
-
-