Partilhar via


CosmosAsyncTrigger Class

  • java.lang.Object
    • com.azure.cosmos.CosmosAsyncTrigger

public class CosmosAsyncTrigger

The type Cosmos async trigger. This contains methods to operate on a cosmos trigger asynchronously

Method Summary

Modifier and Type Method and Description
Mono<CosmosTriggerResponse> delete()

Deletes a cosmos trigger.

String getId()

Get the id of the CosmosAsyncTrigger

Mono<CosmosTriggerResponse> read()

Reads a cosmos trigger

Mono<CosmosTriggerResponse> replace(CosmosTriggerProperties triggerProperties)

Replaces a cosmos trigger.

Methods inherited from java.lang.Object

Method Details

delete

public Mono delete()

Deletes a cosmos trigger.

After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response for the deleted trigger. In case of failure the Mono will error.

Returns:

an Mono containing the single resource response for the deleted cosmos trigger or an error.

getId

public String getId()

Get the id of the CosmosAsyncTrigger

Returns:

the id of the CosmosAsyncTrigger

read

public Mono read()

Reads a cosmos trigger

After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response for the read trigger. In case of failure the Mono will error.

Returns:

an Mono containing the single resource response for the read cosmos trigger or an error.

replace

public Mono replace(CosmosTriggerProperties triggerProperties)

Replaces a cosmos trigger.

After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response with the replaced trigger. In case of failure the Mono will error.

Parameters:

triggerProperties - the cosmos trigger properties.

Returns:

an Mono containing the single resource response with the replaced cosmos trigger or an error.

Applies to