org.jboss.cache.config
Enum Configuration.CacheMode

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

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

Cache replication mode.


Enum Constant Summary
INVALIDATION_ASYNC
          Data invalidated asynchronously.
INVALIDATION_SYNC
          Data invalidated synchronously.
LOCAL
          Data is not replicated.
REPL_ASYNC
          Data replicated asynchronously.
REPL_SYNC
          Data replicated synchronously.
 
Method Summary
 boolean isInvalidation()
          Returns true if the mode is invalidation, either sync or async.
static Configuration.CacheMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Configuration.CacheMode[] 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

LOCAL

public static final Configuration.CacheMode LOCAL
Data is not replicated.


REPL_SYNC

public static final Configuration.CacheMode REPL_SYNC
Data replicated synchronously.


REPL_ASYNC

public static final Configuration.CacheMode REPL_ASYNC
Data replicated asynchronously.


INVALIDATION_SYNC

public static final Configuration.CacheMode INVALIDATION_SYNC
Data invalidated synchronously.


INVALIDATION_ASYNC

public static final Configuration.CacheMode INVALIDATION_ASYNC
Data invalidated asynchronously.

Method Detail

values

public static final Configuration.CacheMode[] 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.CacheMode c : Configuration.CacheMode.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.CacheMode 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

isInvalidation

public boolean isInvalidation()
Returns true if the mode is invalidation, either sync or async.



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