Skip to content

Wait For Job

//trimblecloud-fileservice/trimblecloud.fileservice/JobsAPI/waitForJob

waitForJob

[JVM]
abstract fun waitForJob(@NonNulljobId: @NonNullUUID, interval: Duration, timeout: Duration, callback: JobStatusCallBack): CompletableFuture<Response<Job>>

Poll for the job status until it is completed or failed.

Return

  • A future that resolves to the job response.

Parameters

JVM

jobId- The job id.
interval- Time interval between each poll.
timeout- Duration to wait before timing out.
callback- A callback to be know the status of operation.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.