# io.github.libtmux.SnapshotCapture.SnapshotCapture

- **Module:** io.github.libtmux.SnapshotCapture
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java#L32
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-snapshotcapture-snapshotcapture/

Reads a whole tmux server into one snapshot.

<p>One server-wide listing per kind of object, so ordering and membership stay tmux's decision
rather than being re-derived from another listing's rows.

<p>Two commands: who the server is, then the listings as one group fenced against both halves of
that answer, its pid and its version. tmux runs a group in the server, so rows cannot come from
two of them, and a server that is not the one probed is refused before a listing runs rather than
detected afterwards. Retrying is {@link Server#snapshot()}'s decision, not this one's.

## Members

- `SnapshotCapture` (method)
- `attempt` (method) — One attempt, empty when the server was replaced under it.
- `process` (method) — Reads process identity and version together so neither can come from a different server.
- `ServerProcess` (struct)
