Package com.azure.cosmos.models
Class CosmosBatchRequestOptions
java.lang.Object
com.azure.cosmos.models.CosmosBatchRequestOptions
Encapsulates options that can be specified for a
CosmosBatch
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the token for use with session consistency.setSessionToken
(String sessionToken) Sets the token for use with session consistency.
-
Constructor Details
-
CosmosBatchRequestOptions
public CosmosBatchRequestOptions()
-
-
Method Details
-
getSessionToken
Gets the token for use with session consistency.- Returns:
- the session token.
-
setSessionToken
Sets the token for use with session consistency.- Parameters:
sessionToken
- the session token.- Returns:
- the TransactionalBatchRequestOptions.
-