- Summary:
- Nested |
- Enum Constants |
- Field |
- Method
- Detail:
- Enum Constants |
- Field |
- Method
com.supermap.services.providers
Enum RestProviderBase.CacheModel
- java.lang.Object
-
- java.lang.Enum<RestProviderBase.CacheModel>
-
- com.supermap.services.providers.RestProviderBase.CacheModel
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<RestProviderBase.CacheModel>
- Enclosing class:
- RestProviderBase
public static enum RestProviderBase.CacheModel extends java.lang.Enum<RestProviderBase.CacheModel>
The cache mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description ALWAYSAlways use caching.NOTDoesn't use caching.WHENDISCONNECTEDCaches are used when the remote Rest service loses connection.
-
Method Summary
Methods Modifier and Type Method and Description static RestProviderBase.CacheModelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RestProviderBase.CacheModel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT
public static final RestProviderBase.CacheModel NOT
Doesn't use caching.
-
ALWAYS
public static final RestProviderBase.CacheModel ALWAYS
Always use caching.
-
WHENDISCONNECTED
public static final RestProviderBase.CacheModel WHENDISCONNECTED
Caches are used when the remote Rest service loses connection.
-
-
Method Detail
-
values
public static RestProviderBase.CacheModel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RestProviderBase.CacheModel c : RestProviderBase.CacheModel.values()) System.out.println(c);- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestProviderBase.CacheModel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-
- Summary:
- Nested |
- Enum Constants |
- Field |
- Method
- Detail:
- Enum Constants |
- Field |
- Method