com.compoundtheory.objectcache
Class Config
java.lang.Object
com.compoundtheory.objectcache.Config
public class Config
- extends java.lang.Object
A Cache configuration for a specific class
- Author:
- Mark Mandel
|
Constructor Summary |
Config()
|
Config(int maxObjects,
int secondsPersisted,
int secondsAccessedTimeout)
Constructor |
Config(int maxObjects,
int secondsPersisted,
int secondsAccessedTimeout,
java.lang.String scope)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
getMaxObjects
public int getMaxObjects()
getSecondsPersisted
public int getSecondsPersisted()
getScope
public java.lang.String getScope()
getSecondsAccessedTimeout
public int getSecondsAccessedTimeout()