| Modifier and Type | Class and Description |
|---|---|
| public static enum | SizeOfPolicyConfiguration.MaxDepthExceededBehavior
Enum of the possible behaviors of the SizeOf engine when the max depth is exceeded |
| Modifier and Type | Field and Description |
|---|---|
| public static final SizeOfPolicyConfiguration. | DEFAULT_MAX_DEPTH_EXCEEDED_BEHAVIOR
Default max traversal depth exceeded behavior |
| public static final int | DEFAULT_MAX_SIZEOF_DEPTH
Default max traversal depth |
| private volatile int | |
| private volatile SizeOfPolicyConfiguration. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | Returns: the maximum depth the SizeOf engine can normally traverseGets the maximum depth the SizeOf engine can normally traverse |
| public SizeOfPolicyConfiguration. | Returns: the behavior of the SizeOf engine when the max depth is reachedGets the behavior of the SizeOf engine when the max depth is reached |
| public int | |
| public SizeOfPolicyConfiguration | Returns: this SizeOfPolicyConfiguration objectthe maximum depth the SizeOf engine can normally traverse maxDepth)Builder method to set the maximum depth the SizeOf engine can normally traverse |
| public SizeOfPolicyConfiguration | Returns: this SizeOfPolicyConfiguration objectthe behavior of the SizeOf engine when the max depth is reached maxDepthExceededBehaviorBuilder method to set the behavior of the SizeOf engine when the max depth is reached |
| public SizeOfPolicyConfiguration | Returns: this SizeOfPolicyConfiguration objectthe behavior of the SizeOf engine when the max depth is reached maxDepthExceededBehavior)Builder method to set the behavior of the SizeOf engine when the max depth is reached using a String object |
| public static SizeOfPolicyConfiguration. | Returns: the resolved MaxDepthExceededBehaviorthe cache from which to resolve the MaxDepthExceededBehavior cache)Helper method which resolves the MaxDepthExceededBehavior of a cache, using the cache manager's one if none was configured on the cache itself. |
| public static int | Returns: the resolved max depththe cache from which to resolve the max depth 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. |
| private static SizeOfPolicyConfiguration | |
| public void | setMaxDepth(int
the maximum depth the SizeOf engine can normally traverse maxDepth)Sets the maximum depth the SizeOf engine can normally traverse |
| public void | setMaxDepthExceededBehavior(String
the behavior of the SizeOf engine when the max depth is reached maxDepthExceededBehavior)Sets the behavior of the SizeOf engine when the max depth is reached |
| DEFAULT_MAX_DEPTH_EXCEEDED_BEHAVIOR | back to summary |
|---|---|
| public static final SizeOfPolicyConfiguration. Default max traversal depth exceeded behavior | |
| DEFAULT_MAX_SIZEOF_DEPTH | back to summary |
|---|---|
| public static final int DEFAULT_MAX_SIZEOF_DEPTH Default max traversal depth | |
| maxDepth | back to summary |
|---|---|
| private volatile int maxDepth | |
| maxDepthExceededBehavior | back to summary |
|---|---|
| private volatile SizeOfPolicyConfiguration. | |
| SizeOfPolicyConfiguration | back to summary |
|---|---|
| public SizeOfPolicyConfiguration() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getMaxDepth | back to summary |
|---|---|
| public int getMaxDepth() Gets the maximum depth the SizeOf engine can normally traverse
| |
| getMaxDepthExceededBehavior | back to summary |
|---|---|
| public SizeOfPolicyConfiguration. Gets the behavior of the SizeOf engine when the max depth is reached
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| maxDepth | back to summary |
|---|---|
| public SizeOfPolicyConfiguration maxDepth(int maxDepth) Builder method to set the maximum depth the SizeOf engine can normally traverse
| |
| maxDepthExceededBehavior | back to summary |
|---|---|
| public SizeOfPolicyConfiguration maxDepthExceededBehavior(SizeOfPolicyConfiguration. Builder method to set the behavior of the SizeOf engine when the max depth is reached
| |
| maxDepthExceededBehavior | back to summary |
|---|---|
| public SizeOfPolicyConfiguration maxDepthExceededBehavior(String maxDepthExceededBehavior) Builder method to set the behavior of the SizeOf engine when the max depth is reached using a String object
| |
| resolveBehavior | back to summary |
|---|---|
| public static SizeOfPolicyConfiguration. Helper method which resolves the MaxDepthExceededBehavior of a cache, using the cache manager's one if none was configured on the cache itself.
| |
| resolveMaxDepth | back to summary |
|---|---|
| public 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.
| |
| resolvePolicy | back to summary |
|---|---|
| private static SizeOfPolicyConfiguration resolvePolicy(Configuration configuration, CacheConfiguration cacheConfiguration) | |
| setMaxDepth | back to summary |
|---|---|
| public void setMaxDepth(int maxDepth) Sets the maximum depth the SizeOf engine can normally traverse
| |
| setMaxDepthExceededBehavior | back to summary |
|---|---|
| public void setMaxDepthExceededBehavior(String maxDepthExceededBehavior) Sets the behavior of the SizeOf engine when the max depth is reached
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final SizeOfPolicyConfiguration. | ABORT
Abort the SizeOf engine's traversal and immediately return the partially calculated size |
| public static final SizeOfPolicyConfiguration. | CONTINUE
Warn about the exceeded max depth but continue traversal of the sized element |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this behavior is equal to ABORTReturns true if this behavior is equal to ABORT |
| public boolean | Returns: true if this behavior is equal to CONTINUEReturns true if this behavior is equal to CONTINUE |
| public static SizeOfPolicyConfiguration. | |
| public static SizeOfPolicyConfiguration. |
| ABORT | back to summary |
|---|---|
| public static final SizeOfPolicyConfiguration. Abort the SizeOf engine's traversal and immediately return the partially calculated size | |
| CONTINUE | back to summary |
|---|---|
| public static final SizeOfPolicyConfiguration. Warn about the exceeded max depth but continue traversal of the sized element | |
| MaxDepthExceededBehavior | back to summary |
|---|---|
| private MaxDepthExceededBehavior() | |
| isAbort | back to summary |
|---|---|
| public boolean isAbort() Returns true if this behavior is equal to ABORT
| |
| isContinue | back to summary |
|---|---|
| public boolean isContinue() Returns true if this behavior is equal to CONTINUE
| |
| valueOf | back to summary |
|---|---|
| public static SizeOfPolicyConfiguration. | |
| values | back to summary |
|---|---|
| public static SizeOfPolicyConfiguration. | |