StoredProcedureResponse Class
- java.
lang. Object - com.
microsoft. azure. cosmosdb. StoredProcedureResponse
- com.
public class StoredProcedureResponse
Represents the response returned from a stored procedure in the Azure Cosmos DB database service. Wraps the response body and headers.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
Gets the Activity ID of the request. |
Client |
getClientSideRequestStatistics()
Gets the client side request statics for execution of stored procedure. |
String |
getCurrentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources) |
String |
getMaxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master resources). |
double |
getRequestCharge()
Gets the number of normalized requests charged. |
Attachment |
getResponseAsAttachment()
Gets the response of a stored procedure, serialized into an attachment. |
Document |
getResponseAsDocument()
Gets the response of a stored procedure, serialized into a document. |
String |
getResponseAsString()
Gets the response of a stored procedure as a string. |
Map<String, String> |
getResponseHeaders()
Gets the headers associated with the response. |
String |
getScriptLog()
Gets the output from stored procedure console.log() statements. |
String |
getSessionToken()
Gets the token for use with session consistency requests. |
int |
getStatusCode()
Gets the request completion status code. |
Method Details
getActivityId
public String getActivityId()
Gets the Activity ID of the request.
Returns:
getClientSideRequestStatistics
public ClientSideRequestStatistics getClientSideRequestStatistics()
Gets the client side request statics for execution of stored procedure.
Returns:
getCurrentResourceQuotaUsage
public String getCurrentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)
Returns:
getMaxResourceQuota
public String getMaxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master resources).
Returns:
getRequestCharge
public double getRequestCharge()
Gets the number of normalized requests charged.
Returns:
getResponseAsAttachment
public Attachment getResponseAsAttachment()
Gets the response of a stored procedure, serialized into an attachment.
Returns:
getResponseAsDocument
public Document getResponseAsDocument()
Gets the response of a stored procedure, serialized into a document.
Returns:
getResponseAsString
public String getResponseAsString()
Gets the response of a stored procedure as a string.
Returns:
getResponseHeaders
public Map
Gets the headers associated with the response.
Returns:
getScriptLog
public String getScriptLog()
Gets the output from stored procedure console.log() statements.
Returns:
getSessionToken
public String getSessionToken()
Gets the token for use with session consistency requests.
Returns:
getStatusCode
public int getStatusCode()
Gets the request completion status code.
Returns:
Applies to
Azure SDK for Java