DataPolicy
instead.@Deprecated @Immutable public class MirrorType extends Object implements 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 . |
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)
ordinal
- the ordinal representation of a MirrorTypepublic DataPolicy getDataPolicy()
DataPolicy
that corresponds to this mirror type.DataPolicy
that corresponds to this mirror typepublic boolean isKeys()
KEYS
.KEYS
public boolean isKeysValues()
KEYS_VALUES
.KEYS_VALUES
public boolean isNone()
NONE
.NONE
public boolean isMirrored()
KEYS
or KEYS_VALUES