org.jboss.cache.config
Enum Configuration.NodeLockingScheme

java.lang.Object
  extended by java.lang.Enum<Configuration.NodeLockingScheme>
      extended by org.jboss.cache.config.Configuration.NodeLockingScheme
All Implemented Interfaces:
Serializable, Comparable<Configuration.NodeLockingScheme>
Enclosing class:
Configuration

public static enum Configuration.NodeLockingScheme
extends Enum<Configuration.NodeLockingScheme>

Cache node locking scheme.


Enum Constant Summary
MVCC
          Data is locked using the MVCC locking scheme.
OPTIMISTIC
          Data is unlocked during modification, modifications merged at commit.
PESSIMISTIC
          Data is exclusively locked during modification.
 
Method Summary
 boolean isVersionedScheme()
           
static Configuration.NodeLockingScheme valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Configuration.NodeLockingScheme[] 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

MVCC

public static final Configuration.NodeLockingScheme MVCC
Data is locked using the MVCC locking scheme. This is the default locking scheme in JBoss Cache 3.0.0.

See Also:
http://wiki.jboss.org/wiki/JBossCacheMVCC

PESSIMISTIC

public static final Configuration.NodeLockingScheme PESSIMISTIC
Data is exclusively locked during modification.

See Also:
http://en.wikipedia.org/wiki/Concurrency_control (pessimistic)

OPTIMISTIC

public static final Configuration.NodeLockingScheme OPTIMISTIC
Data is unlocked during modification, modifications merged at commit.

See Also:
http://en.wikipedia.org/wiki/Optimistic_concurrency_control
Method Detail

values

public static final Configuration.NodeLockingScheme[] 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(Configuration.NodeLockingScheme c : Configuration.NodeLockingScheme.values())
        System.out.println(c);

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

valueOf

public static Configuration.NodeLockingScheme 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

isVersionedScheme

public boolean isVersionedScheme()
Returns:
true if the node locking scheme uses versioning.


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