1 package net.pterodactylus.fcp.quelaton;
3 import java.io.InputStream;
4 import java.util.Optional;
5 import java.util.concurrent.Future;
7 import net.pterodactylus.fcp.Priority;
10 * Command that retrieves data from Freenet.
12 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
14 public interface ClientGetCommand {
16 ClientGetCommand identifier(String identifier);
17 ClientGetCommand ignoreDataStore();
18 ClientGetCommand dataStoreOnly();
19 ClientGetCommand maxSize(long maxSize);
20 ClientGetCommand priority(Priority priority);
21 ClientGetCommand realTime();
22 ClientGetCommand global();
24 Future<Optional<Data>> uri(String uri);
30 InputStream getInputStream();