public class ExpirationAction extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static ExpirationAction |
DESTROY
When the region or cached object expires, it is destroyed.
|
static ExpirationAction |
INVALIDATE
When the region or cached object expires, it is invalidated.
|
static ExpirationAction |
LOCAL_DESTROY
When expired, destroyed locally only.
|
static ExpirationAction |
LOCAL_INVALIDATE
When expired, invalidated locally only.
|
int |
ordinal |
Modifier and Type | Method and Description |
---|---|
static ExpirationAction |
fromOrdinal(int ordinal)
Return the ExpirationAction represented by specified ordinal
|
static ExpirationAction |
fromXmlString(String xmlValue)
converts allowed values in cache.xml into ExpirationAction
|
boolean |
isDestroy()
Returns whether this is the action for distributed destroy.
|
boolean |
isDistributed()
Returns whether this action is distributed.
|
boolean |
isInvalidate()
Returns whether this is the action for distributed invalidate.
|
boolean |
isLocal()
Returns whether this action is local.
|
boolean |
isLocalDestroy()
Returns whether this is the action for local destroy.
|
boolean |
isLocalInvalidate()
Returns whether this is the action for local invalidate.
|
String |
toString()
Returns a string representation for this action
|
String |
toXmlString()
converts to strings used in cache.xml
|
@Immutable public static final ExpirationAction INVALIDATE
@Immutable public static final ExpirationAction LOCAL_INVALIDATE
@Immutable public static final ExpirationAction DESTROY
@Immutable public static final ExpirationAction LOCAL_DESTROY
public final int ordinal
public boolean isInvalidate()
public boolean isLocalInvalidate()
public boolean isDestroy()
public boolean isLocalDestroy()
public boolean isLocal()
public boolean isDistributed()
public String toString()
public String toXmlString()
public static ExpirationAction fromXmlString(String xmlValue)
xmlValue
- the values allowed are: invalidate, destroy, local-invalidate, local-destroyIllegalArgumentException
- for all other invalid strings.public static ExpirationAction fromOrdinal(int ordinal)
ordinal
- the ordinal representation of an ExpirationAction