Class LeaseOptions.Builder (2.0.0)

public static final class LeaseOptions.Builder

Provides static creation methods for LeaseOptions.

Inheritance

java.lang.Object > LeaseOptions.Builder

Static Methods

withCountLimit(long countLimit)

public static LeaseOptions withCountLimit(long countLimit)

Returns default LeaseOptions and calls LeaseOptions#countLimit(long).

Parameter
Name Description
countLimit long
Returns
Type Description
LeaseOptions

withDeadlineInSeconds(@Nullable Double deadlineInSeconds)

public static LeaseOptions withDeadlineInSeconds(@Nullable Double deadlineInSeconds)
Parameter
Name Description
deadlineInSeconds @org.checkerframework.checker.nullness.qual.Nullable java.lang.Double
Returns
Type Description
LeaseOptions

withLeasePeriod(long lease, TimeUnit unit)

public static LeaseOptions withLeasePeriod(long lease, TimeUnit unit)

Returns default LeaseOptions and calls LeaseOptions#leasePeriod(long, TimeUnit).

Parameters
Name Description
lease long
unit TimeUnit
Returns
Type Description
LeaseOptions

withTag(byte[] tag)

public static LeaseOptions withTag(byte[] tag)

Returns default LeaseOptions and calls LeaseOptions#tag(byte[]).

Parameter
Name Description
tag byte[]
Returns
Type Description
LeaseOptions

withTag(String tag)

public static LeaseOptions withTag(String tag)

Returns default LeaseOptions and calls LeaseOptions#tag(String).

Parameter
Name Description
tag String
Returns
Type Description
LeaseOptions