Class GetModelCheckResultsTask
java.lang.Object
java.util.concurrent.CompletableFuture<ModelCheckResults>
nl.bimbase.bimworks.client.Task<ModelCheckResults>
nl.bimbase.bimworks.client.GetModelCheckResultsTask
- All Implemented Interfaces:
CompletionStage<ModelCheckResults>, Future<ModelCheckResults>
-
Nested Class Summary
Nested classes/interfaces inherited from class CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Constructor Summary
ConstructorsConstructorDescriptionGetModelCheckResultsTask(BimWorksClient bimWorksClient, UUID modelCheckSetUuid) -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelCheckResultsconvert(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
-
GetModelCheckResultsTask
-
-
Method Details
-
createRequest
public nl.sascom.backplane.common.Request createRequest()- Overrides:
createRequestin classTask<ModelCheckResults>
-
getModelCheckSetUuid
-
convert
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.- Overrides:
convertin classTask<ModelCheckResults>
-