Interface SnapshotSourceProvider


public interface SnapshotSourceProvider
Interface to be implemented to provide snapshot operations.
  • Method Summary

    Modifier and Type Method Description
    void applySnapshot​(org.json.JSONObject snapshot)
    The method to be invoked when applying the snapshot.
    org.json.JSONObject getSnapshot()
    The method to be invoked when requesting the current snapshot
  • Method Details

    • getSnapshot

      org.json.JSONObject getSnapshot()
      The method to be invoked when requesting the current snapshot
      Returns:
      current snapshot
    • applySnapshot

      void applySnapshot​(org.json.JSONObject snapshot)
      The method to be invoked when applying the snapshot.
      Parameters:
      snapshot - The snapshot object to be applied. The object can be String, JSONObject or JSONArray