Commit 0df217a2 authored by R.W.Majeed's avatar R.W.Majeed

asynchronous extraction

parent 0db381fb
...@@ -4,6 +4,7 @@ import java.io.IOException; ...@@ -4,6 +4,7 @@ import java.io.IOException;
import java.nio.file.Path; import java.nio.file.Path;
import java.sql.SQLException; import java.sql.SQLException;
import java.time.Instant; import java.time.Instant;
import java.util.concurrent.CompletableFuture;
import javax.xml.transform.Source; import javax.xml.transform.Source;
...@@ -34,7 +35,6 @@ public interface DataExtractor { ...@@ -34,7 +35,6 @@ public interface DataExtractor {
* @throws IOException error writing files * @throws IOException error writing files
* @throws SQLException error while extracting data * @throws SQLException error while extracting data
*/ */
public String[] extractData(Instant fromTimestamp, Instant endTimestamp, Source exportDescriptor, Path destinationDir) throws IOException, SQLException; public CompletableFuture<String[]> extractData(Instant fromTimestamp, Instant endTimestamp, Source exportDescriptor, Path destinationDir);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment