Class SnapshotSourceClient


  • public class SnapshotSourceClient
    extends Object
    SnapshotSourceClient connects to an SnapshotSourceProvider, which allows getting and applying snapshots.
    • Constructor Detail

      • SnapshotSourceClient

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

      • getSnapshotAsync

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

        public 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