Enum Class ApiLimitPolicy

java.lang.Object
java.lang.Enum<ApiLimitPolicy>
com.northconcepts.datapipeline.twitter.ApiLimitPolicy
All Implemented Interfaces:
IApiLimitPolicy, Serializable, Comparable<ApiLimitPolicy>, Constable

public enum ApiLimitPolicy extends Enum<ApiLimitPolicy> implements IApiLimitPolicy
Indicates the action to take when the Twitter API call limits are reached.
  • Enum Constant Details

    • STOP

      public static final ApiLimitPolicy STOP
      Stop the reader normally if the Twitter API call limit is reached.
    • FAIL

      public static final ApiLimitPolicy FAIL
      Stop the reader with an exception if the Twitter API call limit is reached.
    • WAIT

      public static final ApiLimitPolicy WAIT
      Wait for the limits to be reset if the Twitter API call limit is reached.
  • Method Details

    • values

      public static ApiLimitPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ApiLimitPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null