org.jboss.cache
Enum AbstractNode.NodeFlags

java.lang.Object
  extended by java.lang.Enum<AbstractNode.NodeFlags>
      extended by org.jboss.cache.AbstractNode.NodeFlags
All Implemented Interfaces:
Serializable, Comparable<AbstractNode.NodeFlags>
Enclosing class:
AbstractNode<K,V>

public static enum AbstractNode.NodeFlags
extends Enum<AbstractNode.NodeFlags>

These flags were originally stored as booleans on the UnversionedNode class. They have been replaced with an enum and an EnumSet, which is much more space-efficient for very little cost in lookups.


Enum Constant Summary
CHILDREN_LOADED
          All children are loaded from the cache loader if this flag is present.
CHILDREN_MODIFIED_IN_WORKSPACE
          Specific to Optimistic Locking Workspace nodes - set if a node has added or removed children in a workspace.
CREATED_IN_WORKSPACE
          Specific to Optimistic Locking Workspace nodes - set if a node has been created in a workspace.
DATA_LOADED
          Data is loaded from the cache loader if this flag is present.
DELETED
          Node has been deleted.
LOCK_FOR_CHILD_INSERT_REMOVE
          Node is write-locked when children are added or removed if this flag is enabled.
MODIFIED_IN_WORKSPACE
          Specific to Optimistic Locking Workspace nodes - set if a node has been modified in a workspace.
RESIDENT
          NOde is resident and excluded from evictions
RESURRECTED_IN_WORKSPACE
          Specific to Optimistic Locking Workspace nodes - set if a node has been resurrected in a workspace.
VALID
          Node is valid if this flag is present.
VERSIONING_IMPLICIT
          Specific to Optimistic Locking Workspace nodes - set if an implicit version is associated with this node.
 
Field Summary
protected  short mask
           
 
Method Summary
static AbstractNode.NodeFlags valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AbstractNode.NodeFlags[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CHILDREN_LOADED

public static final AbstractNode.NodeFlags CHILDREN_LOADED
All children are loaded from the cache loader if this flag is present.


DATA_LOADED

public static final AbstractNode.NodeFlags DATA_LOADED
Data is loaded from the cache loader if this flag is present.


LOCK_FOR_CHILD_INSERT_REMOVE

public static final AbstractNode.NodeFlags LOCK_FOR_CHILD_INSERT_REMOVE
Node is write-locked when children are added or removed if this flag is enabled.


VALID

public static final AbstractNode.NodeFlags VALID
Node is valid if this flag is present.


DELETED

public static final AbstractNode.NodeFlags DELETED
Node has been deleted.


RESIDENT

public static final AbstractNode.NodeFlags RESIDENT
NOde is resident and excluded from evictions


MODIFIED_IN_WORKSPACE

public static final AbstractNode.NodeFlags MODIFIED_IN_WORKSPACE
Specific to Optimistic Locking Workspace nodes - set if a node has been modified in a workspace.


CREATED_IN_WORKSPACE

public static final AbstractNode.NodeFlags CREATED_IN_WORKSPACE
Specific to Optimistic Locking Workspace nodes - set if a node has been created in a workspace.


CHILDREN_MODIFIED_IN_WORKSPACE

public static final AbstractNode.NodeFlags CHILDREN_MODIFIED_IN_WORKSPACE
Specific to Optimistic Locking Workspace nodes - set if a node has added or removed children in a workspace.


VERSIONING_IMPLICIT

public static final AbstractNode.NodeFlags VERSIONING_IMPLICIT
Specific to Optimistic Locking Workspace nodes - set if an implicit version is associated with this node.


RESURRECTED_IN_WORKSPACE

public static final AbstractNode.NodeFlags RESURRECTED_IN_WORKSPACE
Specific to Optimistic Locking Workspace nodes - set if a node has been resurrected in a workspace.

Field Detail

mask

protected final short mask
Method Detail

values

public static final AbstractNode.NodeFlags[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AbstractNode.NodeFlags c : AbstractNode.NodeFlags.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AbstractNode.NodeFlags valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.