Class SnapshotSourceClient


  • public class SnapshotSourceClient
    extends java.lang.Object
    SnapshotSourceClient connects to an SnapshotSourceProvider, which allows getting and applying snapshots.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<Ack> applySnapshotAsync​(org.json.JSONObject snapshot)
      Applies specified snapshot object to the snapshot provider.
      java.util.concurrent.CompletableFuture<org.json.JSONObject> getSnapshotAsync()
      Gets current snapshot from the snapshot provider.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SnapshotSourceClient

        public SnapshotSourceClient​(DesktopConnection desktopConnection,
                                    java.lang.String uuid)
        Constructor of SnapshotSourceClient
        Parameters:
        desktopConnection - an instance of DesktopConnection
        uuid - uuid of snapshot provider
    • Method Detail

      • getSnapshotAsync

        public java.util.concurrent.CompletableFuture<org.json.JSONObject> getSnapshotAsync()
        Gets current snapshot from the snapshot provider.
        Returns:
        Ack for the request
        See Also:
        Ack
      • applySnapshotAsync

        public java.util.concurrent.CompletableFuture<Ack> applySnapshotAsync​(org.json.JSONObject snapshot)
        Applies specified snapshot object to the snapshot provider.
        Parameters:
        snapshot - The snapshot object
        Returns:
        Ack for the request