Author: ehillenius Date: Tue Sep 11 20:53:05 2007 New Revision: 574778 URL: http://svn.apache.org/viewvc?rev=574778&view=rev Log: lang fixes
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/FileChannelPool.java Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/FileChannelPool.java URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/FileChannelPool.java?rev=574778&r1=574777&r2=574778&view=diff ============================================================================== --- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/FileChannelPool.java (original) +++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/FileChannelPool.java Tue Sep 11 20:53:05 2007 @@ -34,20 +34,17 @@ /** * Thread safe pool of [EMAIL PROTECTED] FileChannel} objects. * <p> - * Opening and closing file is an expensive operation and under certain - * circumstances this can singificantly harm performances, because on every - * close the filesystem cache might be flushed. + * Opening and closing file is an expensive operation and under certain circumstances this can + * significantly harm performances, because on every close the file system cache might be flushed. * <p> - * To minimize the negative impact opened files can be pooled, which is a - * responsibility of [EMAIL PROTECTED] FileChannelPool} class. + * To minimize the negative impact opened files can be pooled, which is a responsibility of + * [EMAIL PROTECTED] FileChannelPool} class. * <p> - * [EMAIL PROTECTED] FileChannelPool} allows to specify maximum number of opened - * [EMAIL PROTECTED] FileChannel}s. + * [EMAIL PROTECTED] FileChannelPool} allows to specify maximum number of opened [EMAIL PROTECTED] FileChannel}s. * <p> - * Note that under certain circumtances (when there are no empty slots in pool) - * the initial capacity can be exceeded (more files are opened then the - * specified capacity is). If this happens, a warning is written to log, as this - * probably means that there is a problem with page store. + * Note that under certain circumstances (when there are no empty slots in pool) the initial + * capacity can be exceeded (more files are opened then the specified capacity is). If this happens, + * a warning is written to log, as this probably means that there is a problem with page store. * * @author Matej Knopp */ @@ -85,8 +82,8 @@ * * @param fileName * @param createIfDoesNotExist - * in case the file does not exist this parameter determines if - * the file should be created + * in case the file does not exist this parameter determines if the file should be + * created * @return */ private FileChannel newFileChannel(String fileName, boolean createIfDoesNotExist) @@ -110,8 +107,8 @@ /** - * Tries to reduce (close) enouch channels to have at least one channel free - * (so that there are maximum capacity - 1 opened channel). + * Tries to reduce (close) enough channels to have at least one channel free (so that there are + * maximum capacity - 1 opened channel). */ private void reduceChannels() { @@ -155,8 +152,8 @@ } /** - * Returns a channel for given file. If the file doesn't exist, the - * createIfDoesNotExit attribute specifies if the file should be crated. + * Returns a channel for given file. If the file doesn't exist, the createIfDoesNotExit + * attribute specifies if the file should be crated. * * Do NOT call close on the returned chanel. Instead call * [EMAIL PROTECTED] #returnFileChannel(FileChannel)} @@ -208,8 +205,8 @@ } /** - * Returns the channel to the pool. It is necessary to call this for every - * channel obtained by calling [EMAIL PROTECTED] #getFileChannel(String, boolean)}. + * Returns the channel to the pool. It is necessary to call this for every channel obtained by + * calling [EMAIL PROTECTED] #getFileChannel(String, boolean)}. * * @param channel */ @@ -267,9 +264,9 @@ } /** - * Closes the file channel with given name and removes it from pool. Also - * removes the file from file system. If the channel is in use, the pool - * first waits until the chanel is returned to the pool and then closes it. + * Closes the file channel with given name and removes it from pool. Also removes the file from + * file system. If the channel is in use, the pool first waits until the chanel is returned to + * the pool and then closes it. * * @param name */