public class BatchImpl extends java.lang.Object implements Storage.Batch
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits the batch, applying all queued changes.
|
void |
removeItem(java.lang.String key)
Adds an deletion to the batch.
|
void |
setItem(java.lang.String key,
java.lang.String data)
Adds an update to the batch.
|
public BatchImpl(Storage storage)
public void setItem(java.lang.String key,
java.lang.String data)
Storage.BatchsetItem in interface Storage.Batchpublic void removeItem(java.lang.String key)
Storage.BatchremoveItem in interface Storage.Batchpublic void commit()
Storage.BatchStorage.Batch.setItem(java.lang.String, java.lang.String) or
Storage.Batch.removeItem(java.lang.String) after a call to this method will fail.commit in interface Storage.BatchCopyright © 2018. All Rights Reserved.