# io.github.libtmux.IncarnationFence.guarded

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux/src/main/java/io/github/libtmux/IncarnationFence.java#L64
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-incarnationfence-incarnationfence-guarded/

```
io.github.libtmux.IncarnationFence.guarded(snapshot: ServerSnapshot, command: String) -> CommandResult

io.github.libtmux.IncarnationFence.guarded(snapshot: ServerSnapshot, command: String, input: String) -> CommandResult

io.github.libtmux.IncarnationFence.guarded(pid: long, condition: String, command: String, input: String) -> CommandResult
```

Refuses to reach a tmux server that is not the one this handle was made against.
