Package com.azure.storage.blob.options
Class BlobAcquireLeaseOptions
java.lang.Object
com.azure.storage.blob.options.BlobAcquireLeaseOptions
Extended options that may be passed when acquiring a lease to a blob or container.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
setRequestConditions
(BlobLeaseRequestConditions requestConditions)
-
Constructor Details
-
BlobAcquireLeaseOptions
public BlobAcquireLeaseOptions(int durationInSeconds) - Parameters:
durationInSeconds
- The duration of the lease between 15 to 60 seconds or -1 for an infinite duration.
-
-
Method Details
-
getDuration
public int getDuration()- Returns:
- The duration of the lease between 15 to 60 seconds or -1 for an infinite duration.
-
getRequestConditions
- Returns:
BlobLeaseRequestConditions
-
setRequestConditions
- Parameters:
requestConditions
-BlobLeaseRequestConditions
- Returns:
- The updated options.
-