projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move ClientHello command into its own class
[jFCPlib.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
fcp
/
quelaton
/
ClientGetCommand.java
diff --git
a/src/main/java/net/pterodactylus/fcp/quelaton/ClientGetCommand.java
b/src/main/java/net/pterodactylus/fcp/quelaton/ClientGetCommand.java
index
60a46d0
..
7e039ba
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/quelaton/ClientGetCommand.java
+++ b/
src/main/java/net/pterodactylus/fcp/quelaton/ClientGetCommand.java
@@
-2,10
+2,11
@@
package net.pterodactylus.fcp.quelaton;
import java.io.InputStream;
import java.util.Optional;
import java.io.InputStream;
import java.util.Optional;
-import java.util.concurrent.Future;
import net.pterodactylus.fcp.Priority;
import net.pterodactylus.fcp.Priority;
+import com.google.common.util.concurrent.ListenableFuture;
+
/**
* Command that retrieves data from Freenet.
*
/**
* Command that retrieves data from Freenet.
*
@@
-13,7
+14,6
@@
import net.pterodactylus.fcp.Priority;
*/
public interface ClientGetCommand {
*/
public interface ClientGetCommand {
- ClientGetCommand identifier(String identifier);
ClientGetCommand ignoreDataStore();
ClientGetCommand dataStoreOnly();
ClientGetCommand maxSize(long maxSize);
ClientGetCommand ignoreDataStore();
ClientGetCommand dataStoreOnly();
ClientGetCommand maxSize(long maxSize);
@@
-21,7
+21,7
@@
public interface ClientGetCommand {
ClientGetCommand realTime();
ClientGetCommand global();
ClientGetCommand realTime();
ClientGetCommand global();
- Future<Optional<Data>> uri(String uri);
+
Listenable
Future<Optional<Data>> uri(String uri);
interface Data {
interface Data {