你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn 。
CosmosAsyncStoredProcedure Class
java.lang.Object
com.azure.cosmos.CosmosAsyncStoredProcedure
public class CosmosAsyncStoredProcedure
The type Cosmos async stored procedure.
Method Summary
Methods inherited from java.lang.Object
Method Details
delete
public Mono delete()
Deletes a stored procedure
After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response for the deleted stored procedure. In case of failure the Mono will error.
Returns:
an Mono containing the single resource response for the deleted stored procedure or an error.
delete
public Mono delete(CosmosStoredProcedureRequestOptions options)
Deletes a stored procedure
After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response for the deleted stored procedure. In case of failure the Mono will error.
Parameters:
options
- the request options.
Returns:
an Mono containing the single resource response for the deleted stored procedure or an error.
execute
public Mono execute(List procedureParams, CosmosStoredProcedureRequestOptions options)
Executes a stored procedure
After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response with the stored procedure response. In case of failure the Mono will error.
Parameters:
procedureParams
- the list of procedure parameter values.
options
- the request options.
Returns:
an Mono containing the single resource response with the stored procedure response or an error.
read
public Mono read()
Read a stored procedure
After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response with the read stored procedure. In case of failure the Mono will error.
Returns:
an Mono containing the single resource response with the read stored procedure or an error.
read
public Mono read(CosmosStoredProcedureRequestOptions options)
Read a stored procedure
After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response with the read stored procedure. In case of failure the Mono will error.
Parameters:
options
- the request options.
Returns:
an Mono containing the single resource response with the read stored procedure or an error.
replace
public Mono replace(CosmosStoredProcedureProperties storedProcedureProperties)
Replaces a stored procedure.
After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response with the replaced stored procedure. In case of failure the Mono will error.
Parameters:
storedProcedureProperties
- the stored procedure properties
Returns:
an Mono containing the single resource response with the replaced stored procedure or an error.
replace
public Mono replace(CosmosStoredProcedureProperties storedProcedureProperties, CosmosStoredProcedureRequestOptions options)
Replaces a stored procedure.
After subscription the operation will be performed. The Mono upon successful completion will contain a single resource response with the replaced stored procedure. In case of failure the Mono will error.
Parameters:
storedProcedureProperties
- the stored procedure properties.
options
- the request options.
Returns:
an Mono containing the single resource response with the replaced stored procedure or an error.
Applies to