BlobAcquireLeaseOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlobAcquireLeaseOptions
- com.
public class BlobAcquireLeaseOptions
Extended options that may be passed when acquiring a lease to a blob or container.
Constructor Summary
Constructor | Description |
---|---|
BlobAcquireLeaseOptions(int durationInSeconds) |
Creates a new instance of BlobAcquireLeaseOptions. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
getDuration()
Gets the duration of the lease. |
Blob |
getRequestConditions()
Gets the BlobLeaseRequestConditions. |
Blob |
setRequestConditions(BlobLeaseRequestConditions requestConditions)
Sets the BlobLeaseRequestConditions. |
Methods inherited from java.lang.Object
Constructor Details
BlobAcquireLeaseOptions
public BlobAcquireLeaseOptions(int durationInSeconds)
Creates a new instance of BlobAcquireLeaseOptions.
Parameters:
Method Details
getDuration
public int getDuration()
Gets the duration of the lease.
Returns:
getRequestConditions
public BlobLeaseRequestConditions getRequestConditions()
Gets the BlobLeaseRequestConditions.
Returns:
setRequestConditions
public BlobAcquireLeaseOptions setRequestConditions(BlobLeaseRequestConditions requestConditions)
Sets the BlobLeaseRequestConditions.
Parameters:
Returns: