|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.config.SizeOfPolicyConfiguration
public class SizeOfPolicyConfiguration
Class to hold the SizeOf policy configuration.
Nested Class Summary | |
---|---|
static class |
SizeOfPolicyConfiguration.MaxDepthExceededBehavior
Enum of the possible behaviors of the SizeOf engine when the max depth is exceeded |
Field Summary | |
---|---|
static SizeOfPolicyConfiguration.MaxDepthExceededBehavior |
DEFAULT_MAX_DEPTH_EXCEEDED_BEHAVIOR
Default max traversal depth exceeded behavior |
static int |
DEFAULT_MAX_SIZEOF_DEPTH
Default max traversal depth |
Constructor Summary | |
---|---|
SizeOfPolicyConfiguration()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getMaxDepth()
Gets the maximum depth the SizeOf engine can normally traverse |
SizeOfPolicyConfiguration.MaxDepthExceededBehavior |
getMaxDepthExceededBehavior()
Gets the behavior of the SizeOf engine when the max depth is reached |
int |
hashCode()
|
SizeOfPolicyConfiguration |
maxDepth(int maxDepth)
Builder method to set the maximum depth the SizeOf engine can normally traverse |
SizeOfPolicyConfiguration |
maxDepthExceededBehavior(SizeOfPolicyConfiguration.MaxDepthExceededBehavior maxDepthExceededBehavior)
Builder method to set the behavior of the SizeOf engine when the max depth is reached |
SizeOfPolicyConfiguration |
maxDepthExceededBehavior(String maxDepthExceededBehavior)
Builder method to set the behavior of the SizeOf engine when the max depth is reached using a String object |
static SizeOfPolicyConfiguration.MaxDepthExceededBehavior |
resolveBehavior(Ehcache cache)
Helper method which resolves the MaxDepthExceededBehavior of a cache, using the cache manager's one if none was configured on the cache itself. |
static int |
resolveMaxDepth(Ehcache cache)
Helper method which resolves the max depth of a cache, using the cache manager's one if none was configured on the cache itself. |
void |
setMaxDepth(int maxDepth)
Sets the maximum depth the SizeOf engine can normally traverse |
void |
setMaxDepthExceededBehavior(String maxDepthExceededBehavior)
Sets the behavior of the SizeOf engine when the max depth is reached |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_SIZEOF_DEPTH
public static final SizeOfPolicyConfiguration.MaxDepthExceededBehavior DEFAULT_MAX_DEPTH_EXCEEDED_BEHAVIOR
Constructor Detail |
---|
public SizeOfPolicyConfiguration()
Method Detail |
---|
public int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth
- the maximum depth the SizeOf engine can normally traversepublic SizeOfPolicyConfiguration maxDepth(int maxDepth)
maxDepth
- the maximum depth the SizeOf engine can normally traverse
public SizeOfPolicyConfiguration.MaxDepthExceededBehavior getMaxDepthExceededBehavior()
public void setMaxDepthExceededBehavior(String maxDepthExceededBehavior)
maxDepthExceededBehavior
- the behavior of the SizeOf engine when the max depth is reachedpublic SizeOfPolicyConfiguration maxDepthExceededBehavior(SizeOfPolicyConfiguration.MaxDepthExceededBehavior maxDepthExceededBehavior)
maxDepthExceededBehavior
- the behavior of the SizeOf engine when the max depth is reached
public SizeOfPolicyConfiguration maxDepthExceededBehavior(String maxDepthExceededBehavior)
maxDepthExceededBehavior
- the behavior of the SizeOf engine when the max depth is reached
public static int resolveMaxDepth(Ehcache cache)
cache
- the cache from which to resolve the max depth
public static SizeOfPolicyConfiguration.MaxDepthExceededBehavior resolveBehavior(Ehcache cache)
cache
- the cache from which to resolve the MaxDepthExceededBehavior
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |