Interface SandboxClient<O extends SandboxClientOptions>
- Type Parameters:
O- the type of client options for this implementation
- All Known Implementing Classes:
DockerSandboxClient
public interface SandboxClient<O extends SandboxClientOptions>
Factory for creating and resuming
Sandbox instances.-
Method Summary
Modifier and TypeMethodDescriptioncreate(WorkspaceSpec workspaceSpec, SandboxSnapshotSpec snapshotSpec, O options) Creates a new sandbox with the given workspace spec and snapshot spec.voiddeserializeState(String json) default SandboxStatedeserializeState(String json, SandboxSnapshotSpec snapshotSpec) resume(SandboxState state) Resumes a sandbox from previously serializedSandboxState.serializeState(SandboxState state)
-
Method Details
-
create
Creates a new sandbox with the given workspace spec and snapshot spec.Returned in a pre-start state; call
Sandbox.start()before use. -
resume
Resumes a sandbox from previously serializedSandboxState. -
delete
-
serializeState
-
deserializeState
-
deserializeState
-