Package playn.core

Interface Storage.Batch

All Known Implementing Classes:
BatchImpl
Enclosing interface:
Storage

public static interface Storage.Batch
Represents a batch of edits to be applied to storage in one transaction. Individual edits are expensive on some platforms, and this batch interface allows multiple edits to be applied substantially more efficiently (more than an order of magnitude) on those platforms. If you're going to make hundreds or thousands of changes at once, use this mechanism.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Commits the batch, applying all queued changes.
    void
    Adds an deletion to the batch.
    void
    setItem(String key, String data)
    Adds an update to the batch.