StoredProcedureResponse Class
- java.
lang. Object - com.
microsoft. azure. documentdb. StoredProcedureResponse
- com.
public final 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 |
---|---|
java.lang.String |
getActivityId()
Gets the Activity ID of the request. |
Client |
getClientSideRequestStatistics()
Gets the client side request statistics for execution of stored procedure. |
java.lang.String |
getCurrentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources) |
java.lang.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. |
java.lang.String |
getResponseAsString()
Gets the response of a stored procedure as a string. |
java.util.Map<java.lang.String,java.lang.String> |
getResponseHeaders()
Gets the headers associated with the response. |
java.lang.String |
getScriptLog()
Gets the output from stored procedure console. |
java.lang.String |
getSessionToken()
Gets the token for use with session consistency requests. |
int |
getStatusCode()
Gets the request completion status code. |
Methods inherited from java.lang.Object
Method Details
getActivityId
public String getActivityId()
Gets the Activity ID of the request.
Returns:
getClientSideRequestStatistics
public ClientSideRequestStatistics getClientSideRequestStatistics()
Gets the client side request statistics 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