Class ListModelCheckResultsTask
java.lang.Object
java.util.concurrent.CompletableFuture<Map<UUID, nl.bimbase.bimworks.common.api.checks.CheckResult>>
nl.bimbase.bimworks.client.Task<Map<UUID, nl.bimbase.bimworks.common.api.checks.CheckResult>>
nl.bimbase.bimworks.client.ListModelCheckResultsTask
- All Implemented Interfaces:
CompletionStage<Map<UUID, nl.bimbase.bimworks.common.api.checks.CheckResult>>, Future<Map<UUID, nl.bimbase.bimworks.common.api.checks.CheckResult>>
-
Nested Class Summary
Nested classes/interfaces inherited from class CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Constructor Summary
ConstructorsConstructorDescriptionListModelCheckResultsTask(BimWorksClient bimWorksClient, UUID modelCheckSetUuid, Set<UUID> checkResultUuids) -
Method Summary
Modifier and TypeMethodDescriptionconvert(nl.sascom.backplane.common.Response response) Converts the rawResponseinto this task's result type.nl.sascom.backplane.common.RequestMethods inherited from class Task
createAsyncTask, createRequest, executeAsync, get, get, getBimWorksClient, getClientTask, getRequest, join, setProgressListener, setTimeOutModifier and TypeMethodDescriptionnl.sascom.backplane.common.ClientTaskcreateAsyncTask(BimWorksClient bimWorksClient) nl.sascom.backplane.common.RequestcreateRequest(int defaultTimeOut, TimeUnit defaultTimeUnit) Sends the request.get()Waits for the result, bounded by the request's own timeout.nl.sascom.backplane.client.AsyncTasknl.sascom.backplane.common.Requestjoin()LikeCompletableFuture.join(), but bounded by the request's own timeout (seeTask.get()) and responsive to interrupts, which are rethrown wrapped in aCompletionExceptionafter restoring the interrupt flag.voidsetProgressListener(nl.sascom.backplane.common.ProgressListener progressListener) voidsetTimeOut(long timeOutValue, TimeUnit timeOutUnit) Methods inherited from class CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, failedFuture, failedStage, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Constructor Details
-
ListModelCheckResultsTask
public ListModelCheckResultsTask(BimWorksClient bimWorksClient, UUID modelCheckSetUuid, Set<UUID> checkResultUuids)
-
-
Method Details
-
createRequest
public nl.sascom.backplane.common.Request createRequest()- Overrides:
createRequestin classTask<Map<UUID, nl.bimbase.bimworks.common.api.checks.CheckResult>>
-
getModelCheckSetUuid
-
convert
protected Map<UUID, nl.bimbase.bimworks.common.api.checks.CheckResult> convert(nl.sascom.backplane.common.Response response) Description copied from class:TaskConverts the rawResponseinto this task's result type. Called once, on the thread that delivers the response. The default implementation returns the response's object output; tasks with a differently shaped result override this. Throwing here completes the future exceptionally.
-