Class BatchModification
- java.lang.Object
-
- org.infinispan.persistence.support.BatchModification
-
public class BatchModification extends java.lang.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(java.util.Set<java.lang.Object> affectedKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addMarshalledEntry(java.lang.Object key, MarshallableEntry marshalledEntry)
java.util.Set<java.lang.Object>
getAffectedKeys()
java.util.Set<java.lang.Object>
getKeysToRemove()
java.util.Collection<MarshallableEntry>
getMarshallableEntries()
java.util.Collection<MarshalledEntry>
getMarshalledEntries()
Deprecated.since 10.0, usegetMarshallableEntries()
insteadvoid
removeEntry(java.lang.Object key)
-
-
-
Method Detail
-
addMarshalledEntry
public void addMarshalledEntry(java.lang.Object key, MarshallableEntry marshalledEntry)
-
removeEntry
public void removeEntry(java.lang.Object key)
-
getAffectedKeys
public java.util.Set<java.lang.Object> getAffectedKeys()
-
getKeysToRemove
public java.util.Set<java.lang.Object> getKeysToRemove()
-
getMarshalledEntries
@Deprecated public java.util.Collection<MarshalledEntry> getMarshalledEntries()
Deprecated.since 10.0, usegetMarshallableEntries()
instead
-
getMarshallableEntries
public java.util.Collection<MarshallableEntry> getMarshallableEntries()
-
-