Package com.openfin.desktop.snapshot
Class SnapshotSourceClient
- java.lang.Object
-
- com.openfin.desktop.snapshot.SnapshotSourceClient
-
public class SnapshotSourceClient extends java.lang.ObjectSnapshotSourceClient connects to an SnapshotSourceProvider, which allows getting and applying snapshots.
-
-
Constructor Summary
Constructors Constructor Description SnapshotSourceClient(DesktopConnection desktopConnection, java.lang.String uuid)Constructor of SnapshotSourceClient
-
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.
-
-
-
Constructor Detail
-
SnapshotSourceClient
public SnapshotSourceClient(DesktopConnection desktopConnection, java.lang.String uuid)
Constructor of SnapshotSourceClient- Parameters:
desktopConnection- an instance of DesktopConnectionuuid- 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
-
-