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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eLeaseOptions\u003c/code\u003e is a class for specifying various options for lease requests, following the builder pattern to chain multiple options.\u003c/p\u003e\n"],["\u003cp\u003eThe recommended way to create a \u003ccode\u003eLeaseOptions\u003c/code\u003e object is by statically importing \u003ccode\u003eBuilder.*\u003c/code\u003e and using static creation methods followed by instance mutators.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the \u003ccode\u003ecountLimit\u003c/code\u003e, \u003ccode\u003edeadlineInSeconds\u003c/code\u003e, and \u003ccode\u003eleasePeriod\u003c/code\u003e to customize the lease requests, and those values must be positive.\u003c/p\u003e\n"],["\u003cp\u003eYou can set a tag for lease requests, and use \u003ccode\u003egroupByTag\u003c/code\u003e to indicate that all leased tasks must share the same tag.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLeaseOptions\u003c/code\u003e class provides a copy constructor, and overrides the \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e methods inherited from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]