Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclassLeaseOptions
Contains various options for lease requests following the builder pattern. Calls to LeaseOptions methods may be chained to specify multiple options in the one LeaseOptions
object.
Notes on usage:
The recommended way to instantiate a LeaseOptions object is to statically import Builder.* and invoke a static creation method followed by instance mutators:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["`LeaseOptions` is a class for specifying various options for lease requests, following the builder pattern to chain multiple options."],["The recommended way to create a `LeaseOptions` object is by statically importing `Builder.*` and using static creation methods followed by instance mutators."],["You can set the `countLimit`, `deadlineInSeconds`, and `leasePeriod` to customize the lease requests, and those values must be positive."],["You can set a tag for lease requests, and use `groupByTag` to indicate that all leased tasks must share the same tag."],["The `LeaseOptions` class provides a copy constructor, and overrides the `equals`, `hashCode`, and `toString` methods inherited from the `Object` class."]]],[]]