Sdílet prostřednictvím


ResourceResponse<T> Class

  • java.lang.Object
    • com.microsoft.azure.cosmosdb.ResourceResponse<T>

Type Parameters

T

the resource type of the resource response.

public 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
String getActivityId()

Gets the Activity ID for the request.

ClientSideRequestStatistics 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.

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.

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.

double getRequestCharge()

Gets the number of index paths (terms) generated by the operation.

String getRequestDiagnosticsString()

Gets the diagnostics information for the current request to Azure Cosmos DB service.

Duration 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.

Map<String, String> getResponseHeaders()

Gets the headers associated with the response.

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.

Method Details

getActivityId

public String getActivityId()

Gets the Activity ID for the request.

Returns:

the activity id.

getClientSideRequestStatistics

public ClientSideRequestStatistics getClientSideRequestStatistics()

Gets the request statistics for the current request to Azure Cosmos DB service.

Returns:

request statistics for the current request to Azure Cosmos DB service.

getCollectionQuota

public long getCollectionQuota()

Max Quota.

Returns:

the collection quota.

getCollectionSizeQuota

public long getCollectionSizeQuota()

Max Quota.

Returns:

the collection size quota.

getCollectionSizeUsage

public long getCollectionSizeUsage()

Current Usage.

Returns:

the collection size usage.

getCollectionUsage

public long getCollectionUsage()

Current Usage.

Returns:

the current collection usage.

getCurrentResourceQuotaUsage

public String getCurrentResourceQuotaUsage()

Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)

Returns:

the current resource quota usage.

getDatabaseQuota

public long getDatabaseQuota()

Max Quota.

Returns:

the database quota.

getDatabaseUsage

public long getDatabaseUsage()

Current Usage.

Returns:

the current database usage.

getDocumentCountQuota

public long getDocumentCountQuota()

Max document count quota.

Returns:

the document count quota.

getDocumentCountUsage

public long getDocumentCountUsage()

Current document count usage.

Returns:

the document count usage.

getDocumentQuota

public long getDocumentQuota()

Max Quota.

Returns:

the document quota.

getDocumentUsage

public long getDocumentUsage()

Current Usage.

Returns:

the document usage.

getIndexTransformationProgress

public long getIndexTransformationProgress()

Gets the progress of an index transformation, if one is underway.

Returns:

the progress of an index transformation.

getLazyIndexingProgress

public long getLazyIndexingProgress()

Gets the progress of lazy indexing.

Returns:

the progress of lazy indexing.

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:

the max resource quota.

getPermissionQuota

public long getPermissionQuota()

Max Quota.

Returns:

the permission quota.

getPermissionUsage

public long getPermissionUsage()

Current Usage.

Returns:

the current permission usage.

getRequestCharge

public double getRequestCharge()

Gets the number of index paths (terms) generated by the operation.

Returns:

the request charge.

getRequestDiagnosticsString

public String getRequestDiagnosticsString()

Gets the diagnostics information for the current request to Azure Cosmos DB service.

Returns:

diagnostics information for the current request to Azure Cosmos DB service.

getRequestLatency

public Duration getRequestLatency()

Gets the end-to-end request latency for the current request to Azure Cosmos DB service.

Returns:

end-to-end request latency for the current request to Azure Cosmos DB service.

getResource

public T getResource()

Gets the resource for the request.

Returns:

the resource.

getResponseHeaders

public Map getResponseHeaders()

Gets the headers associated with the response.

Returns:

the response headers.

getSessionToken

public String getSessionToken()

Gets the token used for managing client's consistency requirements.

Returns:

the session token.

getStatusCode

public int getStatusCode()

Gets the HTTP status code associated with the response.

Returns:

the status code.

getStoredProceduresQuota

public long getStoredProceduresQuota()

Max Quota.

Returns:

the stored procedures quota.

getStoredProceduresUsage

public long getStoredProceduresUsage()

Current Usage.

Returns:

the current stored procedures usage.

getTriggersQuota

public long getTriggersQuota()

Max Quota.

Returns:

the triggers quota.

getTriggersUsage

public long getTriggersUsage()

Current Usage.

Returns:

the current triggers usage.

getUserDefinedFunctionsQuota

public long getUserDefinedFunctionsQuota()

Max Quota.

Returns:

the user defined functions quota.

getUserDefinedFunctionsUsage

public long getUserDefinedFunctionsUsage()

Current Usage.

Returns:

the current user defined functions usage.

getUserQuota

public long getUserQuota()

Max Quota.

Returns:

the user quota.

getUserUsage

public long getUserUsage()

Current Usage.

Returns:

the current user usage.

Applies to