Class AOJRepository
java.lang.Object
com.io7m.coffeepick.adoptopenjdk_v3.AOJRepository
- All Implemented Interfaces:
RuntimeRepositoryType
public final class AOJRepository extends java.lang.Object implements RuntimeRepositoryType
-
Method Summary
Modifier and Type Method Description static RuntimeRepositoryTypecreate(net.adoptopenjdk.v3.api.AOV3ClientType client, RuntimeRepositoryProviderType provider, RuntimeRepositoryContextType context)RuntimeRepositoryDescriptiondescription()io.reactivex.rxjava3.core.Observable<RuntimeRepositoryEventType>events()RuntimeRepositoryProviderTypeprovider()java.util.Map<java.lang.String,RuntimeDescription>runtimes()Obtain a read-only map of the available runtimes in the repository.voidupdate(java.util.function.BooleanSupplier cancelled)Update the repository.
-
Method Details
-
create
public static RuntimeRepositoryType create(net.adoptopenjdk.v3.api.AOV3ClientType client, RuntimeRepositoryProviderType provider, RuntimeRepositoryContextType context) throws java.io.IOException- Throws:
java.io.IOException
-
events
- Specified by:
eventsin interfaceRuntimeRepositoryType- Returns:
- A stream of events from the repository
-
provider
- Specified by:
providerin interfaceRuntimeRepositoryType- Returns:
- The repository provider
-
update
public void update(java.util.function.BooleanSupplier cancelled) throws java.lang.Exception, java.util.concurrent.CancellationExceptionDescription copied from interface:RuntimeRepositoryTypeUpdate the repository.- Specified by:
updatein interfaceRuntimeRepositoryType- Parameters:
cancelled- A function that returnstrueif the update should be cancelled- Throws:
java.lang.Exception- On errorsjava.util.concurrent.CancellationException- Ifcancelledreturnstrue
-
runtimes
Description copied from interface:RuntimeRepositoryTypeObtain a read-only map of the available runtimes in the repository.- Specified by:
runtimesin interfaceRuntimeRepositoryType- Returns:
- The available runtimes
-
description
- Specified by:
descriptionin interfaceRuntimeRepositoryType- Returns:
- The current repository description
-