Add method to disallow local addresses for a peer
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ModifyPeerCommand.java
1 package net.pterodactylus.fcp.quelaton;
2
3 import java.util.Optional;
4
5 import net.pterodactylus.fcp.Peer;
6
7 /**
8  * Command that modifies certain settings of a peer.
9  *
10  * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
11  */
12 public interface ModifyPeerCommand {
13
14         ModifyPeerCommand enable();
15         ModifyPeerCommand disable();
16         ModifyPeerCommand allowLocalAddresses();
17         ModifyPeerCommand disallowLocalAddresses();
18
19         Executable<Optional<Peer>> byName(String name);
20         Executable<Optional<Peer>> byIdentity(String nodeIdentity);
21         Executable<Optional<Peer>> byHostAndPort(String host, int port);
22
23 }