Package de.geolykt.starloader.util
Class MirroringURIMavenRepository
java.lang.Object
de.geolykt.starloader.util.MirroringURIMavenRepository
- All Implemented Interfaces:
org.stianloader.picoresolve.repo.MavenRepository
public class MirroringURIMavenRepository
extends Object
implements org.stianloader.picoresolve.repo.MavenRepository
-
Constructor Summary
ConstructorsConstructorDescriptionMirroringURIMavenRepository(@NotNull String id, @NotNull URI base, @Nullable Path mirrorOut) -
Method Summary
Modifier and TypeMethodDescription@NotNull String@NotNull String@NotNull CompletableFuture<org.stianloader.picoresolve.repo.RepositoryAttachedValue<byte[]>>getResource(@NotNull String path, @NotNull Executor executor) protected byte @NotNull []getResource0(@NotNull String path) long
-
Constructor Details
-
MirroringURIMavenRepository
-
-
Method Details
-
getPlaintextURL
- Specified by:
getPlaintextURLin interfaceorg.stianloader.picoresolve.repo.MavenRepository
-
getRepositoryId
- Specified by:
getRepositoryIdin interfaceorg.stianloader.picoresolve.repo.MavenRepository
-
getResource
@NotNull public @NotNull CompletableFuture<org.stianloader.picoresolve.repo.RepositoryAttachedValue<byte[]>> getResource(@NotNull @NotNull String path, @NotNull @NotNull Executor executor) - Specified by:
getResourcein interfaceorg.stianloader.picoresolve.repo.MavenRepository
-
getResource0
- Throws:
Exception
-
getUpdateIntervall
@Contract(pure=true) public long getUpdateIntervall()- Specified by:
getUpdateIntervallin interfaceorg.stianloader.picoresolve.repo.MavenRepository
-