# io.github.libtmux.SnapshotCapture.sessionsNamed

- **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#L220
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-snapshotcapture-snapshotcapture-sessionsnamed/

```
Optional<ServerSnapshot> sessionsNamed(String name)
```

The sessions stored under any name tmux may keep for this one, read in one fenced call, and an empty capture when there are none. Empty when a candidate cannot sit inside a format, and the caller reads the whole server instead.

## Parameters

- `name` (`String`)
