# io.github.libtmux.SnapshotCapture.sessionsHolding

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c067fced0dfd19bd6dd3d260e9d4c336becdb063/libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java#L319
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-snapshotcapture-snapshotcapture-sessionsholding/

```
Optional<ServerSnapshot> sessionsHolding(PaneId id)
```

The sessions holding this pane, with their windows and panes, in one fenced call. Empty when no session holds it.

The filter loops each listed row's own session, so every listing keeps whole sessions, and a
window linked into two sessions brings both. tmux evaluates this loop inside {@code -f} the same
way on every supported release; see {@code docs/decisions/0005-pushdown-lowering-is-exact-or-refused.md}.

## Parameters

- `id` (`PaneId`)
