Package com.cloudinary.android.policy
Class TimeWindow.Builder
java.lang.Object
com.cloudinary.android.policy.TimeWindow.Builder
- Enclosing class:
- TimeWindow
public static final class TimeWindow.Builder
extends java.lang.Object
Constructs a
TimeWindow instance-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TimeWindowbuild()TimeWindow.BuildermaxExecutionDelayMillis(long maxExecutionDelayMillis)Sets the maximum time to wait before a request must be executed regardless of the upload policy.TimeWindow.BuilderminLatencyMillis(long minLatencyMillis)Sets the minimum time to wait before executing a request.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
minLatencyMillis
Sets the minimum time to wait before executing a request. This is defined as offset to current time.- Parameters:
minLatencyMillis- The minimum time to wait before executing a request. This is defined as offset to current time.- Returns:
- Itself for chaining operations.
-
maxExecutionDelayMillis
Sets the maximum time to wait before a request must be executed regardless of the upload policy. This is defined as offset to current time.- Parameters:
maxExecutionDelayMillis- The maximum time to wait before a request must be executed regardless of the upload policy. This is defined as offset to current time.- Returns:
- Itself for chaining operations.
-
build
- Returns:
- An instance of
TimeWindowbased on the requested parameters.
-