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
    TimeWindow build()  
    TimeWindow.Builder maxExecutionDelayMillis​(long maxExecutionDelayMillis)
    Sets the maximum time to wait before a request must be executed regardless of the upload policy.
    TimeWindow.Builder minLatencyMillis​(long minLatencyMillis)
    Sets the minimum time to wait before executing a request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • minLatencyMillis

      public TimeWindow.Builder minLatencyMillis​(long 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

      public TimeWindow.Builder maxExecutionDelayMillis​(long 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

      public TimeWindow build()
      Returns:
      An instance of TimeWindow based on the requested parameters.