Add progress consumer to ClientPut command
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ClientPutCommand.java
index 7e900f2..3fc5767 100644 (file)
@@ -6,6 +6,7 @@ import java.util.Optional;
 import java.util.function.Consumer;
 
 import net.pterodactylus.fcp.Key;
+import net.pterodactylus.fcp.RequestProgress;
 
 /**
  * FCP command that inserts data into Freenet.
@@ -14,6 +15,7 @@ import net.pterodactylus.fcp.Key;
  */
 public interface ClientPutCommand {
 
+       ClientPutCommand onProgress(Consumer<RequestProgress> requestProgressConsumer);
        ClientPutCommand onKeyGenerated(Consumer<String> keyGenerated);
        ClientPutCommand named(String targetFilename);
        WithUri redirectTo(String uri);