org.teiid.translator
Enum CacheScope

java.lang.Object
  extended by java.lang.Enum<CacheScope>
      extended by org.teiid.translator.CacheScope
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CacheScope>

public enum CacheScope
extends java.lang.Enum<CacheScope>

Cache Scope REQUEST - Items placed in this scope are retained until the end of the top level request. The items to be placed does not need to implement Serializable, however recommended. These items are not replicated across the cluster. SERVICE - Items from this scope are available to the identified connector All the items placed in the below scopes must be Serializable, as they are replicated across cluster. SESSION - Items placed in the scope retained until the particular User's session of top level request is alive. VDB - Items placed with this scope retained until the life of the VDB; GLOBAL - Items placed in this will available to all until the Query Service is recycled.


Enum Constant Summary
GLOBAL
           
REQUEST
           
SERVICE
           
SESSION
           
VDB
           
 
Method Summary
static CacheScope valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CacheScope[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REQUEST

public static final CacheScope REQUEST

SERVICE

public static final CacheScope SERVICE

SESSION

public static final CacheScope SESSION

VDB

public static final CacheScope VDB

GLOBAL

public static final CacheScope GLOBAL
Method Detail

values

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

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

valueOf

public static CacheScope valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2010. All Rights Reserved.