Class ShareBreakLeaseOptions
java.lang.Object
com.azure.storage.file.share.options.ShareBreakLeaseOptions
Extended options that may be passed when breaking a lease to a file or share.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ShareBreakLeaseOptions
public ShareBreakLeaseOptions()
-
-
Method Details
-
getBreakPeriod
- 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
- 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.
-