-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
024472b
commit 9afdce1
Showing
6 changed files
with
118 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
backend/src/main/java/eu/clarin/switchboard/core/FileInfoFuture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package eu.clarin.switchboard.core; | ||
|
||
import java.time.Instant; | ||
import java.util.UUID; | ||
import java.util.concurrent.Future; | ||
|
||
public class FileInfoFuture { | ||
private final UUID id; | ||
private final Instant creation; | ||
private final Future<FileInfo> future; | ||
|
||
public FileInfoFuture(UUID id, Future<FileInfo> future) { | ||
this.id = id; | ||
this.future = future; | ||
this.creation = Instant.now(); | ||
} | ||
|
||
public UUID getId() { | ||
return id; | ||
} | ||
|
||
public Instant getCreation() { | ||
return creation; | ||
} | ||
|
||
public Future<FileInfo> getFileInfoFuture() { | ||
return future; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.