Package com.io7m.coffeepick.jdk_java_net
Class OJNRepository
java.lang.Object
com.io7m.coffeepick.jdk_java_net.OJNRepository
- All Implemented Interfaces:
RuntimeRepositoryType
public final class OJNRepository extends java.lang.Object implements RuntimeRepositoryType
A repository based on https://jdk.openjdk.net
-
Method Summary
Modifier and Type Method Description RuntimeRepositoryDescription
description()
io.reactivex.rxjava3.core.Observable<RuntimeRepositoryEventType>
events()
RuntimeRepositoryProviderType
provider()
java.util.Map<java.lang.String,RuntimeDescription>
runtimes()
Obtain a read-only map of the available runtimes in the repository.void
update(java.util.function.BooleanSupplier cancelled)
Update the repository.
-
Method Details
-
events
- Specified by:
events
in interfaceRuntimeRepositoryType
- Returns:
- A stream of events from the repository
-
provider
- Specified by:
provider
in interfaceRuntimeRepositoryType
- Returns:
- The repository provider
-
update
public void update(java.util.function.BooleanSupplier cancelled) throws java.io.IOExceptionDescription copied from interface:RuntimeRepositoryType
Update the repository.- Specified by:
update
in interfaceRuntimeRepositoryType
- Parameters:
cancelled
- A function that returnstrue
if the update should be cancelled- Throws:
java.io.IOException
-
runtimes
Description copied from interface:RuntimeRepositoryType
Obtain a read-only map of the available runtimes in the repository.- Specified by:
runtimes
in interfaceRuntimeRepositoryType
- Returns:
- The available runtimes
-
description
- Specified by:
description
in interfaceRuntimeRepositoryType
- Returns:
- The current repository description
-