Package com.azure.storage.blob.options
Class BlobBreakLeaseOptions
java.lang.Object
com.azure.storage.blob.options.BlobBreakLeaseOptions
Extended options that may be passed when breaking a lease to a blob or container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the break period of the lease.Gets theBlobLeaseRequestConditions
.setBreakPeriod
(Duration breakPeriod) Sets the break period of the lease.setRequestConditions
(BlobLeaseRequestConditions requestConditions) Sets theBlobLeaseRequestConditions
.
-
Constructor Details
-
BlobBreakLeaseOptions
public BlobBreakLeaseOptions()Creates a new instance ofBlobBreakLeaseOptions
.
-
-
Method Details
-
getBreakPeriod
Gets the break period of the lease.- Returns:
- An optional duration, between 0 and 60 seconds, that the lease should continue before it is broken. If the break period is longer than the time remaining on the lease the remaining time on the lease is used. A new lease will not be available before the break period has expired, but the lease may be held for longer than the break period.
-
setBreakPeriod
Sets the break period of the lease.- Parameters:
breakPeriod
- An optional duration, between 0 and 60 seconds, that the lease should continue before it is broken. If the break period is longer than the time remaining on the lease the remaining time on the lease is used. A new lease will not be available before the break period has expired, but the lease may be held for longer than the break period.- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobLeaseRequestConditions
.- Returns:
BlobLeaseRequestConditions
-
setRequestConditions
Sets theBlobLeaseRequestConditions
.- Parameters:
requestConditions
-BlobLeaseRequestConditions
- Returns:
- The updated options.
-