public enum ApiLimitPolicy extends Enum<ApiLimitPolicy> implements IApiLimitPolicy
Enum Constant and Description |
---|
FAIL
Stop the reader with an exception if the Twitter API call limit is reached.
|
STOP
Stop the reader normally if the Twitter API call limit is reached.
|
WAIT
Wait for the limits to be reset if the Twitter API call limit is reached.
|
Modifier and Type | Method and Description |
---|---|
static ApiLimitPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiLimitPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
onLimitExceeded
public static final ApiLimitPolicy STOP
public static final ApiLimitPolicy FAIL
public static final ApiLimitPolicy WAIT
public static ApiLimitPolicy[] values()
for (ApiLimitPolicy c : ApiLimitPolicy.values()) System.out.println(c);
public static ApiLimitPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.