Interface RuntimeRepositoryType
-
- All Known Implementing Classes:
AOJRepository,ASRepository,OJNRepository
@ThreadSafe @ProviderType public interface RuntimeRepositoryTypeA repository of runtimes. Implementations are required to be thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 Detail
-
events
io.reactivex.rxjava3.core.Observable<RuntimeRepositoryEventType> events()
- Returns:
- A stream of events from the repository
-
provider
RuntimeRepositoryProviderType provider()
- Returns:
- The repository provider
-
update
void update(java.util.function.BooleanSupplier cancelled) throws java.lang.Exception, java.util.concurrent.CancellationExceptionUpdate the repository.- Parameters:
cancelled- A function that returnstrueif the update should be cancelled- Throws:
java.lang.Exception- On errorsjava.util.concurrent.CancellationException- Ifcancelledreturnstrue
-
runtimes
java.util.Map<java.lang.String,RuntimeDescription> runtimes()
Obtain a read-only map of the available runtimes in the repository.- Returns:
- The available runtimes
-
description
RuntimeRepositoryDescription description()
- Returns:
- The current repository description
-
-