public enum GeoServerReadMode extends java.lang.Enum<GeoServerReadMode>
GeoServerReadMode
is an enum used to control GeoServer "pull" replication during Read operations.Enum Constant and Description |
---|
LocalAllowStaleData
Indicates that the read operation can return the object value from the proxy held in the local
ScaleOut store.
|
LocalThrowOnStaleData
Indicates that the read operation can return the object value from the proxy held in the local
ScaleOut store.
|
None
Default.
|
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).
|
Modifier and Type | Method and Description |
---|---|
static GeoServerReadMode |
fromString(java.lang.String value)
Retrieve a GeoServerReadMode enum from a string.
|
static GeoServerReadMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GeoServerReadMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeoServerReadMode None
public static final GeoServerReadMode Remote
public static final GeoServerReadMode LocalThrowOnStaleData
public static final GeoServerReadMode LocalAllowStaleData
public static GeoServerReadMode[] values()
for (GeoServerReadMode c : GeoServerReadMode.values()) System.out.println(c);
public static GeoServerReadMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static GeoServerReadMode fromString(java.lang.String value)
Constants.GEOSERVER_READ_MODE_NONE
Constants.GEOSERVER_READ_MODE_REMOTE
Constants.GEOSERVER_READ_MODE_LOCAL_ALLOW_STALE
Constants.GEOSERVER_READ_MODE_LOCAL_THROW_STALE
value
- Constants.GEOSERVER_READ_MODE_NONE
, Constants.GEOSERVER_READ_MODE_REMOTE
,
Constants.GEOSERVER_READ_MODE_LOCAL_ALLOW_STALE
, or Constants.GEOSERVER_READ_MODE_LOCAL_THROW_STALE
.