Package com.scaleout.client.caching
Enum Class GeoServerReadMode
- All Implemented Interfaces:
Serializable
,Comparable<GeoServerReadMode>
,Constable
The
GeoServerReadMode
is an enum used to control GeoServer "pull" replication during Read operations.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the read operation can return the object value from the proxy held in the local ScaleOut store.Indicates that the read operation can return the object value from the proxy held in the local ScaleOut store.Default.Indicates that the caller has configured GeoServer for "pull" replication and wants to force the local store to read the object from the remote store (rather than reading from a local proxy of the object). -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoServerReadMode
fromString
(String value) Retrieve a GeoServerReadMode enum from a string.static GeoServerReadMode
Returns the enum constant of this class with the specified name.static GeoServerReadMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
Default. Indicates that GeoServer replication is not used with this cache. -
Remote
Indicates that the caller has configured GeoServer for "pull" replication and wants to force the local store to read the object from the remote store (rather than reading from a local proxy of the object). -
LocalThrowOnStaleData
Indicates that the read operation can return the object value from the proxy held in the local ScaleOut store. If the local proxy value is stale (which can occur if the remote store is unreachable) then the Read call will throw a StaleDataException. -
LocalAllowStaleData
Indicates that the read operation can return the object value from the proxy held in the local ScaleOut store. No exception will be thrown if the local proxy value is stale (which can occur if the remote store is unreachable).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromString
Retrieve a GeoServerReadMode enum from a string. Accepted values:Constants.GEOSERVER_READ_MODE_NONE
Constants.GEOSERVER_READ_MODE_REMOTE
Constants.GEOSERVER_READ_MODE_LOCAL_ALLOW_STALE
Constants.GEOSERVER_READ_MODE_LOCAL_THROW_STALE
- Parameters:
value
-Constants.GEOSERVER_READ_MODE_NONE
,Constants.GEOSERVER_READ_MODE_REMOTE
,Constants.GEOSERVER_READ_MODE_LOCAL_ALLOW_STALE
, orConstants.GEOSERVER_READ_MODE_LOCAL_THROW_STALE
.- Returns:
- a GeoServerReadMode that maps from the parameter string value.
-