Share via


CertificateDeletePollerAsync Class

  • java.lang.Object
    • com.azure.compute.batch.CertificateDeletePollerAsync

public final class CertificateDeletePollerAsync

Async poller class used by beginDeleteCertificate to implement polling logic for deleting a BatchCertificate. Returns BatchCertificate during polling and null upon successful deletion.

Constructor Summary

Constructor Description
CertificateDeletePollerAsync(BatchAsyncClient batchAsyncClient, String thumbprintAlgorithm, String thumbprint, RequestOptions options)

Creates a new CertificateDeletePollerAsync.

Method Summary

Modifier and Type Method and Description
Function<PollingContext<BatchCertificate>,Mono<PollResponse<BatchCertificate>>> getActivationOperation()

Activation operation to start the delete.

BiFunction<PollingContext<BatchCertificate>,PollResponse<BatchCertificate>,Mono<BatchCertificate>> getCancelOperation()

Cancel operation (not supported for certificate deletion).

Function<PollingContext<BatchCertificate>,Mono<Void>> getFetchResultOperation()

Final result fetch operation (returns null; not required).

Function<PollingContext<BatchCertificate>,Mono<PollResponse<BatchCertificate>>> getPollOperation()

Poll operation to check if the certificate is still being deleted or is gone.

Methods inherited from java.lang.Object

Constructor Details

CertificateDeletePollerAsync

public CertificateDeletePollerAsync(BatchAsyncClient batchAsyncClient, String thumbprintAlgorithm, String thumbprint, RequestOptions options)

Creates a new CertificateDeletePollerAsync.

Parameters:

batchAsyncClient - The BatchAsyncClient used to interact with the Batch service.
thumbprintAlgorithm - The algorithm used to derive the thumbprint. (e.g., "sha1")
thumbprint - The thumbprint of the certificate to delete.
options - Optional request options for service calls.

Method Details

getActivationOperation

public Function<PollingContext<BatchCertificate>,Mono<PollResponse<BatchCertificate>>> getActivationOperation()

Activation operation to start the delete.

Returns:

A function that initiates the delete request and returns a PollResponse<T> with LongRunningOperationStatus#IN_PROGRESS status.

getCancelOperation

public BiFunction<PollingContext<BatchCertificate>,PollResponse<BatchCertificate>,Mono<BatchCertificate>> getCancelOperation()

Cancel operation (not supported for certificate deletion).

Returns:

A function that always returns an empty Mono, indicating cancellation is unsupported.

getFetchResultOperation

public Function<PollingContext<BatchCertificate>,Mono<Void>> getFetchResultOperation()

Final result fetch operation (returns null; not required).

Returns:

A function that returns an empty Mono, indicating no final fetch is required.

getPollOperation

public Function<PollingContext<BatchCertificate>,Mono<PollResponse<BatchCertificate>>> getPollOperation()

Poll operation to check if the certificate is still being deleted or is gone.

Returns:

A function that polls the certificate state and returns a PollResponse<T> with the current LongRunningOperationStatus.

Applies to