你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResourceResponse<T> Class
- java.
lang. Object - com.
microsoft. azure. documentdb. ResourceResponse<T>
- com.
Type Parameters
- T
the resource type of the resource response.
public final class ResourceResponse
Represents the service response to a request made from DocumentClient in the Azure Cosmos DB database service. Contains both the resource and the response headers.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated. |
java.lang.String |
getActivityId()
Gets the Activity ID for the request. |
Client |
getClientSideRequestStatistics()
Gets the request statistics for the current request to Azure Cosmos DB service. |
long |
getCollectionQuota()
Max Quota. |
long |
getCollectionSizeQuota()
Max Quota. |
long |
getCollectionSizeUsage()
Current Usage. |
long |
getCollectionUsage()
Current Usage. |
java.lang.String |
getCurrentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources) |
long |
getDatabaseQuota()
Max Quota. |
long |
getDatabaseUsage()
Current Usage. |
long |
getDocumentCountQuota()
Max document count quota. |
long |
getDocumentCountUsage()
Current document count usage. |
long |
getDocumentQuota()
Max Quota. |
long |
getDocumentUsage()
Current Usage. |
long |
getIndexTransformationProgress()
Gets the progress of an index transformation, if one is underway. |
long |
getLazyIndexingProgress()
Gets the progress of lazy indexing. |
java.lang.String |
getMaxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master resources). |
long |
getPermissionQuota()
Max Quota. |
long |
getPermissionUsage()
Current Usage. |
boolean |
getRUPerMinuteUsed()
Gets the flag associated with the response from the Azure Cosmos DB database service whether this request is served from Request Units(RUs)/minute capacity or not. |
double |
getRequestCharge()
Gets the number of index paths (terms) generated by the operation. |
java.lang.String |
getRequestDiagnosticsString()
Gets the diagnostics information for the current request to Azure Cosmos DB service. |
org.joda.time.Period |
getRequestLatency()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service. |
T |
getResource()
Gets the resource for the request. |
java.util.Map<java.lang.String,java.lang.String> |
getResponseHeaders()
Gets the headers associated with the response. |
java.lang.String |
getSessionToken()
Gets the token used for managing client's consistency requirements. |
int |
getStatusCode()
Gets the HTTP status code associated with the response. |
long |
getStoredProceduresQuota()
Max Quota. |
long |
getStoredProceduresUsage()
Current Usage. |
long |
getTriggersQuota()
Max Quota. |
long |
getTriggersUsage()
Current Usage. |
long |
getUserDefinedFunctionsQuota()
Max Quota. |
long |
getUserDefinedFunctionsUsage()
Current Usage. |
long |
getUserQuota()
Max Quota. |
long |
getUserUsage()
Current Usage. |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Deprecated.
getActivityId
public String getActivityId()
Gets the Activity ID for the request.
Returns:
getClientSideRequestStatistics
public ClientSideRequestStatistics getClientSideRequestStatistics()
Gets the request statistics for the current request to Azure Cosmos DB service.
Returns:
getCollectionQuota
public long getCollectionQuota()
Max Quota.
Returns:
getCollectionSizeQuota
public long getCollectionSizeQuota()
Max Quota.
Returns:
getCollectionSizeUsage
public long getCollectionSizeUsage()
Current Usage.
Returns:
getCollectionUsage
public long getCollectionUsage()
Current Usage.
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:
getDatabaseQuota
public long getDatabaseQuota()
Max Quota.
Returns:
getDatabaseUsage
public long getDatabaseUsage()
Current Usage.
Returns:
getDocumentCountQuota
public long getDocumentCountQuota()
Max document count quota.
Returns:
getDocumentCountUsage
public long getDocumentCountUsage()
Current document count usage.
Returns:
getDocumentQuota
public long getDocumentQuota()
Max Quota.
Returns:
getDocumentUsage
public long getDocumentUsage()
Current Usage.
Returns:
getIndexTransformationProgress
public long getIndexTransformationProgress()
Gets the progress of an index transformation, if one is underway.
Returns:
getLazyIndexingProgress
public long getLazyIndexingProgress()
Gets the progress of lazy indexing.
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:
getPermissionQuota
public long getPermissionQuota()
Max Quota.
Returns:
getPermissionUsage
public long getPermissionUsage()
Current Usage.
Returns:
getRUPerMinuteUsed
public boolean getRUPerMinuteUsed()
Gets the flag associated with the response from the Azure Cosmos DB database service whether this request is served from Request Units(RUs)/minute capacity or not.
Returns:
getRequestCharge
public double getRequestCharge()
Gets the number of index paths (terms) generated by the operation.
Returns:
getRequestDiagnosticsString
public String getRequestDiagnosticsString()
Gets the diagnostics information for the current request to Azure Cosmos DB service.
Returns:
getRequestLatency
public Period getRequestLatency()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service.
Returns:
getResource
public T getResource()
Gets the resource for the request.
Returns:
getResponseHeaders
public Map
Gets the headers associated with the response.
Returns:
getSessionToken
public String getSessionToken()
Gets the token used for managing client's consistency requirements.
Returns:
getStatusCode
public int getStatusCode()
Gets the HTTP status code associated with the response.
Returns:
getStoredProceduresQuota
public long getStoredProceduresQuota()
Max Quota.
Returns:
getStoredProceduresUsage
public long getStoredProceduresUsage()
Current Usage.
Returns:
getTriggersQuota
public long getTriggersQuota()
Max Quota.
Returns:
getTriggersUsage
public long getTriggersUsage()
Current Usage.
Returns:
getUserDefinedFunctionsQuota
public long getUserDefinedFunctionsQuota()
Max Quota.
Returns:
getUserDefinedFunctionsUsage
public long getUserDefinedFunctionsUsage()
Current Usage.
Returns:
getUserQuota
public long getUserQuota()
Max Quota.
Returns:
getUserUsage
public long getUserUsage()
Current Usage.
Returns: