Class LeaseOptions

java.lang.Object
com.google.appengine.api.taskqueue.LeaseOptions

public final class LeaseOptions extends Object
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 LeaseOptions.Builder.* and invoke a static creation method followed by instance mutators:


 import static com.google.appengine.api.taskqueue.LeaseOptions.Builder.*;

 ...
 tasks = pullQueue.leaseTasks(withLeasePeriod(2, TimeUnit.HOURS).countLimit(1000));