Package org.apache.geode.cache
Class LossAction
java.lang.Object
org.apache.geode.cache.LossAction
- All Implemented Interfaces:
Serializable
Deprecated.
this feature is scheduled to be removed
Specifies how access to the region is affected when one or more required roles are lost. A role
is lost when it is are offline and no longer present in the system membership. The
LossAction is specified when configuring a region's
MembershipAttributes.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LossActionDeprecated.Access to the region is unaffected when required roles are missing.static final LossActionDeprecated.Only local access to the region is allowed when required roles are missing.static final LossActionDeprecated.The region is unavailable when required roles are missing.final byteDeprecated.byte used as ordinal to represent this Scopestatic final LossActionDeprecated.Loss of required roles causes the entire cache to be closed.static final ListDeprecated.List of all LossAction values -
Method Summary
Modifier and TypeMethodDescriptionstatic LossActionDeprecated.Return the LossAction specified by namestatic LossActionfromOrdinal(byte ordinal) Deprecated.Return the LossAction represented by specified ordinalbooleanDeprecated.Returns true if this isFULL_ACCESS.booleanDeprecated.Returns true if this isLIMITED_ACCESS.booleanDeprecated.Returns true if this isNO_ACCESS.booleanDeprecated.Returns true if this isRECONNECT.toString()Deprecated.Returns a string representation for this loss action.
-
Field Details
-
NO_ACCESS
Deprecated.The region is unavailable when required roles are missing. All operations including read and write access are denied. All read and write operations on the region will result inRegionAccessExceptionwhile any required roles are absent. Basic administration of the region is allowed, including close and localDestroyRegion. -
LIMITED_ACCESS
Deprecated.Only local access to the region is allowed when required roles are missing. All distributed write operations on the region will throwRegionAccessExceptionwhile any required roles are absent. Reads which result in a netSearch behave normally, while any attempt to invoke a netLoad is not allowed. -
FULL_ACCESS
Deprecated.Access to the region is unaffected when required roles are missing. -
RECONNECT
Deprecated.Loss of required roles causes the entire cache to be closed. In addition, this process will disconnect from the DistributedSystem and then reconnect. Attempting to use any existing references to the regions or cache will throw aCacheClosedException. -
ordinal
public final byte ordinalDeprecated.byte used as ordinal to represent this Scope -
VALUES
Deprecated.List of all LossAction values
-
-
Method Details
-
fromOrdinal
Deprecated.Return the LossAction represented by specified ordinal- Parameters:
ordinal- the ordinal representation of a LossAction- Returns:
- the LossAction represented by specified ordinal
-
fromName
Deprecated.Return the LossAction specified by name- Parameters:
name- the name of a LossAction- Returns:
- the LossAction specified by name
-
isNoAccess
public boolean isNoAccess()Deprecated.Returns true if this isNO_ACCESS.- Returns:
- whether this is
NO_ACCESS
-
isLimitedAccess
public boolean isLimitedAccess()Deprecated.Returns true if this isLIMITED_ACCESS.- Returns:
- whether this is
LIMITED_ACCESS
-
isAllAccess
public boolean isAllAccess()Deprecated.Returns true if this isFULL_ACCESS.- Returns:
- whether this is
FULL_ACCESS
-
isReconnect
public boolean isReconnect()Deprecated.Returns true if this isRECONNECT.- Returns:
- whether this is
RECONNECT
-
toString
Deprecated.Returns a string representation for this loss action.
-