你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CosmosStoredProcedureResponse Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosResponse<T> - com.
azure. cosmos. models. CosmosStoredProcedureResponse
- com.
- com.
public class CosmosStoredProcedureResponse
extends CosmosResponse<CosmosStoredProcedureProperties>
The type Cosmos stored procedure response.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
Gets the Activity ID for the request. |
Cosmos |
getProperties()
Gets the stored procedure properties |
double |
getRequestCharge()
Gets the number of normalized requests charged. |
String |
getResponseAsString()
Gets the response of the stored procedure as a string. |
String |
getScriptLog()
Gets the output from stored procedure console. |
String |
getSessionToken()
Gets the token used for managing client's consistency requirements. |
int |
getStatusCode()
Gets the HTTP status code associated with the response. |
Methods inherited from CosmosResponse
Methods inherited from java.lang.Object
Method Details
getActivityId
public String getActivityId()
Gets the Activity ID for the request.
Overrides:
CosmosStoredProcedureResponse.getActivityId()Returns:
getProperties
public CosmosStoredProcedureProperties getProperties()
Gets the stored procedure properties
Overrides:
CosmosStoredProcedureResponse.getProperties()Returns:
getRequestCharge
public double getRequestCharge()
Gets the number of normalized requests charged.
Overrides:
CosmosStoredProcedureResponse.getRequestCharge()Returns:
getResponseAsString
public String getResponseAsString()
Gets the response of the stored procedure as a string.
Returns:
getScriptLog
public String getScriptLog()
Gets the output from stored procedure console.log() statements.
Returns:
getSessionToken
public String getSessionToken()
Gets the token used for managing client's consistency requirements.
Overrides:
CosmosStoredProcedureResponse.getSessionToken()Returns:
getStatusCode
public int getStatusCode()
Gets the HTTP status code associated with the response.
Overrides:
CosmosStoredProcedureResponse.getStatusCode()Returns: