Class ApiClient
java.lang.Object
com.intellectualsites.arkitektonika.v1.ApiClient
- All Implemented Interfaces:
ApiClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckCompatibility(@NotNull ExecutorService service) Check if the specified API address is compatible with the clientcheckStatus(@NotNull String key, @NotNull ExecutorService service) Check the status of a remote schematicdelete(@NotNull String key, @NotNull ExecutorService service) Attempt to delete a schematic from the remote servicedownload(@NotNull String key, @NotNull ExecutorService service) Attempt to download a schematic from the remote serviceGet the API version supported by this clientupload(@NotNull File file, @NotNull ExecutorService service) Upload a schematic via an input stream
-
Constructor Details
-
ApiClient
-
-
Method Details
-
getApiVersion
Description copied from interface:ApiClientGet the API version supported by this client- Specified by:
getApiVersionin interfaceApiClient- Returns:
- API version
-
checkCompatibility
@NotNull public @NotNull CompletableFuture<Boolean> checkCompatibility(@NotNull @NotNull ExecutorService service) Description copied from interface:ApiClientCheck if the specified API address is compatible with the client- Specified by:
checkCompatibilityin interfaceApiClient- Parameters:
service- Executor service used to complete the request- Returns:
- Future that completes with the result of the query
-
upload
@NotNull public @NotNull CompletableFuture<SchematicKeys> upload(@NotNull @NotNull File file, @NotNull @NotNull ExecutorService service) Description copied from interface:ApiClientUpload a schematic via an input stream -
checkStatus
@NotNull public @NotNull CompletableFuture<ResourceStatus> checkStatus(@NotNull @NotNull String key, @NotNull @NotNull ExecutorService service) Description copied from interface:ApiClientCheck the status of a remote schematic- Specified by:
checkStatusin interfaceApiClient- Parameters:
key- Schematic access keyservice- Executor service used to complete the request- Returns:
- Future that completes with the resource status
-
delete
@NotNull public @NotNull CompletableFuture<Boolean> delete(@NotNull @NotNull String key, @NotNull @NotNull ExecutorService service) Description copied from interface:ApiClientAttempt to delete a schematic from the remote service -
download
@NotNull public @NotNull CompletableFuture<Schematic> download(@NotNull @NotNull String key, @NotNull @NotNull ExecutorService service) Description copied from interface:ApiClientAttempt to download a schematic from the remote service
-