You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2012/12/28 00:04:48 UTC
svn commit: r1426360 - in /db/derby/code/trunk/java/engine/org/apache/derby:
iapi/services/cache/CacheFactory.java impl/services/cache/Clock.java
Author: kahatlen
Date: Thu Dec 27 23:04:48 2012
New Revision: 1426360
URL: http://svn.apache.org/viewvc?rev=1426360&view=rev
Log:
DERBY-3275: Mismatch between comments and actual use of initialSize parameter in CacheFactory and Clock
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java
db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java?rev=1426360&r1=1426359&r2=1426360&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java Thu Dec 27 23:04:48 2012
@@ -32,7 +32,7 @@ public interface CacheFactory {
@param holderFactory The factory for the objects that are to be cached.
@param name The name of the cache
- @param initialSize The number of initial holder objects that will be created
+ @param initialSize The initial capacity of the cache
@param maximumSize The maximum number of objects the cache will hold
*/
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java?rev=1426360&r1=1426359&r2=1426360&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java Thu Dec 27 23:04:48 2012
@@ -141,11 +141,10 @@ final class Clock implements CacheManage
@param holderFactory the cacheable object class
@param name the name of the cache
- @param initialSize the initial number of cachable object this cache
- holds.
+ @param initialSize the initial capacity of the cache
@param maximumSize the maximum size of the cache. The cache may grow
from initialSize to maximumSize if the cache policy notices that there
- is not enough free buffers availiable. Once the cache hits maximumSize
+ are not enough free buffers available. Once the cache hits maximumSize
it will not grow. If the cache is full, an exception will be thrown
*/