DataPolicy
instead.@Deprecated
@Immutable
public class MirrorType
extends java.lang.Object
implements java.io.Serializable
AttributesFactory.setMirrorType(org.apache.geode.cache.MirrorType)
,
RegionAttributes.getMirrorType()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static MirrorType |
KEYS
Deprecated.
as of GemFire 5.0, use
DataPolicy.REPLICATE instead. |
static MirrorType |
KEYS_VALUES
Deprecated.
as of GemFire 5.0, use
DataPolicy.REPLICATE instead. |
static MirrorType |
NONE
Deprecated.
as of GemFire 5.0, use
DataPolicy.NORMAL instead. |
int |
ordinal
Deprecated.
int used as ordinal to represent this Scope
|
Modifier and Type | Method and Description |
---|---|
static MirrorType |
fromOrdinal(int ordinal)
Deprecated.
Return the MirrorType represented by specified ordinal
|
DataPolicy |
getDataPolicy()
Deprecated.
Returns the
DataPolicy that corresponds to this mirror type. |
boolean |
isKeys()
Deprecated.
Return whether this is
KEYS . |
boolean |
isKeysValues()
Deprecated.
Return whether this is
KEYS_VALUES . |
boolean |
isMirrored()
Deprecated.
Return whether this indicates a mirrored type.
|
boolean |
isNone()
Deprecated.
Return whether this is
NONE . |
java.lang.String |
toString()
Deprecated.
Returns a string representation for this mirror type.
|
@Deprecated @Immutable public static final MirrorType NONE
DataPolicy.NORMAL
instead.@Deprecated @Immutable public static final MirrorType KEYS
DataPolicy.REPLICATE
instead.@Deprecated @Immutable public static final MirrorType KEYS_VALUES
DataPolicy.REPLICATE
instead.public final int ordinal
public static MirrorType fromOrdinal(int ordinal)
public DataPolicy getDataPolicy()
DataPolicy
that corresponds to this mirror type.public boolean isKeys()
KEYS
.public boolean isKeysValues()
KEYS_VALUES
.public boolean isNone()
NONE
.public boolean isMirrored()
KEYS
or KEYS_VALUES
public java.lang.String toString()
toString
in class java.lang.Object