com.compoundtheory.objectcache
Class Config

java.lang.Object
  extended by com.compoundtheory.objectcache.Config

public class Config
extends java.lang.Object

A Cache configuration for a specific class

Author:
Mark Mandel

Field Summary
static int NONE_TIMEOUT
           
static java.lang.String SCOPE_APPLICATION
           
static java.lang.String SCOPE_INSTANCE
           
static java.lang.String SCOPE_NONE
           
static java.lang.String SCOPE_REQUEST
           
static java.lang.String SCOPE_SERVER
           
static java.lang.String SCOPE_SESSION
           
static java.lang.String SCOPE_TRANSACTION
           
static int UNLIMITED_OBJECTS
           
static int UNLIMITED_SECONDS
           
 
Constructor Summary
Config()
           
Config(int maxObjects, int secondsPersisted, int secondsAccessedTimeout)
          Constructor
Config(int maxObjects, int secondsPersisted, int secondsAccessedTimeout, java.lang.String scope)
           
 
Method Summary
 int getMaxObjects()
           
 java.lang.String getScope()
           
 int getSecondsAccessedTimeout()
           
 int getSecondsPersisted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNLIMITED_OBJECTS

public static final int UNLIMITED_OBJECTS
See Also:
Constant Field Values

UNLIMITED_SECONDS

public static final int UNLIMITED_SECONDS
See Also:
Constant Field Values

NONE_TIMEOUT

public static final int NONE_TIMEOUT
See Also:
Constant Field Values

SCOPE_NONE

public static final java.lang.String SCOPE_NONE
See Also:
Constant Field Values

SCOPE_SESSION

public static final java.lang.String SCOPE_SESSION
See Also:
Constant Field Values

SCOPE_TRANSACTION

public static final java.lang.String SCOPE_TRANSACTION
See Also:
Constant Field Values

SCOPE_APPLICATION

public static final java.lang.String SCOPE_APPLICATION
See Also:
Constant Field Values

SCOPE_REQUEST

public static final java.lang.String SCOPE_REQUEST
See Also:
Constant Field Values

SCOPE_SERVER

public static final java.lang.String SCOPE_SERVER
See Also:
Constant Field Values

SCOPE_INSTANCE

public static final java.lang.String SCOPE_INSTANCE
See Also:
Constant Field Values
Constructor Detail

Config

public Config()
       throws InvalidScopeException
Throws:
InvalidScopeException

Config

public Config(int maxObjects,
              int secondsPersisted,
              int secondsAccessedTimeout)
       throws InvalidScopeException
Constructor

Parameters:
maxObjects - maximum number of objects you can have.
secondsPersisted - maximum number of seconds persisted.
Throws:
InvalidScopeException

Config

public Config(int maxObjects,
              int secondsPersisted,
              int secondsAccessedTimeout,
              java.lang.String scope)
       throws InvalidScopeException
Throws:
InvalidScopeException
Method Detail

getMaxObjects

public int getMaxObjects()

getSecondsPersisted

public int getSecondsPersisted()

getScope

public java.lang.String getScope()

getSecondsAccessedTimeout

public int getSecondsAccessedTimeout()