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) |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | getDuration() |
Blob |
getRequestConditions() |
Blob |
setRequestConditions(BlobLeaseRequestConditions requestConditions) |
Methods inherited from java.lang.Object
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
setRequestConditions
public BlobAcquireLeaseOptions setRequestConditions(BlobLeaseRequestConditions requestConditions)
Parameters:
requestConditions
- BlobLeaseRequestConditions
Returns:
The updated options.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java