Package com.io7m.brooklime.api
Interface BLStagingRepositoryUploadType
- All Known Implementing Classes:
BLStagingRepositoryUpload
@Immutable
public interface BLStagingRepositoryUploadType
A request to upload a set of files to a staging repository.
-
Method Summary
Modifier and Type Method Description java.nio.file.PathbaseDirectory()default voidcheckPreconditions()Check preconditions for the type.java.util.List<java.nio.file.Path>files()java.lang.StringrepositoryId()intretryCount()java.time.DurationretryDelay()
-
Method Details
-
repositoryId
java.lang.String repositoryId()- Returns:
- The ID of the staging repository
-
baseDirectory
java.nio.file.Path baseDirectory()- Returns:
- The base directory containing files
-
files
java.util.List<java.nio.file.Path> files()- Returns:
- The files to be uploaded
-
retryDelay
java.time.Duration retryDelay()- Returns:
- The duration by which to pause between failed upload attempts
-
retryCount
int retryCount()- Returns:
- The maximum number of times to retry uploading any given file
-
checkPreconditions
@Check default void checkPreconditions()Check preconditions for the type.
-