From a25ad89f4b7bc9d4d4529d663ada4d1151b5e87c Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Fri, 4 Dec 2020 17:33:29 +0100 Subject: [PATCH] Update FileActor.java --- .../lombok/org/warp/filesponge/api/FileActor.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/lombok/org/warp/filesponge/api/FileActor.java b/src/main/lombok/org/warp/filesponge/api/FileActor.java index 9c27f7f..42ccbfe 100644 --- a/src/main/lombok/org/warp/filesponge/api/FileActor.java +++ b/src/main/lombok/org/warp/filesponge/api/FileActor.java @@ -20,7 +20,6 @@ package org.warp.filesponge.api; import java.time.Duration; import java.util.Optional; -import org.jetbrains.annotations.Nullable; import org.warp.filesponge.value.FileURI; /** @@ -55,21 +54,19 @@ public interface FileActor { /** * Send a "download file" signal * - * @param fileURI File URI - * @param timeout if it's null the method will return immediately, if it's set the method will wait until a file + * @param timeout if it's 0 the method will return immediately, if it's set the method will wait until a file * download request has been found, or the timeout time elapsed * @return empty if no pending download requests has been found, true if the signal can be sent, false * otherwise */ - Optional downloadNextFile(FileURI fileURI, @Nullable Duration timeout); + Optional downloadNextFile(Duration timeout); /** * Send a "delete file" signal * - * @param fileURI File URI - * @param timeout if it's null the method will return immediately, if it's set the method will wait until a file + * @param timeout if it's 0 the method will return immediately, if it's set the method will wait until a file * delete request has been found, or the timeout time elapsed * @return empty if no pending delete requests has been found, true if the signal can be sent, false otherwise */ - Optional deleteNextFile(FileURI fileURI, @Nullable Duration timeout); + Optional deleteNextFile(Duration timeout); }