You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2019/05/15 09:44:22 UTC
svn commit: r1859284 - in
/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine:
ElementAttributes.java behavior/IElementAttributes.java
Author: tv
Date: Wed May 15 09:44:22 2019
New Revision: 1859284
URL: http://svn.apache.org/viewvc?rev=1859284&view=rev
Log:
JCS-195 Update element attributes size on serialization
Modified:
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java
Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java?rev=1859284&r1=1859283&r2=1859284&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java Wed May 15 09:44:22 2019
@@ -160,7 +160,8 @@ public class ElementAttributes
}
/**
- * Size in bytes. This is not used except in the admin pages. It will be -1 by default.
+ * Size in bytes. This is not used except in the admin pages. It will be 0 by default
+ * and is only updated when the element is serialized.
* <p>
* @param size The new size value
*/
Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java?rev=1859284&r1=1859283&r2=1859284&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java Wed May 15 09:44:22 2019
@@ -60,7 +60,8 @@ public interface IElementAttributes exte
void setIdleTime( long idle );
/**
- * Size in bytes. This is not used except in the admin pages. It will be -1 by default.
+ * Size in bytes. This is not used except in the admin pages. It will be 0 by default
+ * and is only updated when the element is serialized.
* <p>
* @param size The new size value
*/