1 package net.pterodactylus.fcp.quelaton;
3 import java.io.InputStream;
4 import java.util.Optional;
6 import net.pterodactylus.fcp.Priority;
8 import com.google.common.util.concurrent.ListenableFuture;
11 * Command that retrieves data from Freenet.
13 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
15 public interface ClientGetCommand {
17 ClientGetCommand ignoreDataStore();
18 ClientGetCommand dataStoreOnly();
19 ClientGetCommand maxSize(long maxSize);
20 ClientGetCommand priority(Priority priority);
21 ClientGetCommand realTime();
22 ClientGetCommand global();
24 Executable<Optional<Data>> uri(String uri);
30 InputStream getInputStream();