Package playn.core
Class BatchImpl
java.lang.Object
playn.core.BatchImpl
- All Implemented Interfaces:
Storage.Batch
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BatchImpl
-
-
Method Details
-
setItem
Description copied from interface:Storage.Batch
Adds an update to the batch.- Specified by:
setItem
in interfaceStorage.Batch
-
removeItem
Description copied from interface:Storage.Batch
Adds an deletion to the batch.- Specified by:
removeItem
in interfaceStorage.Batch
-
commit
public void commit()Description copied from interface:Storage.Batch
Commits the batch, applying all queued changes. Attempts to callStorage.Batch.setItem(java.lang.String, java.lang.String)
orStorage.Batch.removeItem(java.lang.String)
after a call to this method will fail.- Specified by:
commit
in interfaceStorage.Batch
-