Package org.stianloader.picoresolve.repo
Class URIMavenRepository
java.lang.Object
org.stianloader.picoresolve.repo.URIMavenRepository
- All Implemented Interfaces:
MavenRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull String@NotNull String@NotNull CompletableFuture<RepositoryAttachedValue<byte[]>>getResource(@NotNull String path, @NotNull Executor executor) protected byte @NotNull []getResource0(@NotNull String path) longObtains the interval between which cached resources from this repository should get invalidated.
-
Constructor Details
-
URIMavenRepository
-
-
Method Details
-
getResource0
- Throws:
Exception
-
getResource
@NotNull public @NotNull CompletableFuture<RepositoryAttachedValue<byte[]>> getResource(@NotNull @NotNull String path, @NotNull @NotNull Executor executor) - Specified by:
getResourcein interfaceMavenRepository
-
getRepositoryId
- Specified by:
getRepositoryIdin interfaceMavenRepository
-
getPlaintextURL
- Specified by:
getPlaintextURLin interfaceMavenRepository
-
getUpdateIntervall
@Contract(pure=true) public long getUpdateIntervall()Description copied from interface:MavenRepositoryObtains the interval between which cached resources from this repository should get invalidated.- Specified by:
getUpdateIntervallin interfaceMavenRepository- Returns:
- The interval, in milliseconds
-