* SimpleByteCache: Fix ABQ/LBQ selection

This commit is contained in:
zzz
2012-10-02 12:34:29 +00:00
parent a71e8fae00
commit 466778875d

View File

@ -88,7 +88,7 @@ public final class SimpleByteCache {
* @since 0.9.2
*/
private Queue<byte[]> createQueue() {
if (_maxCached <= MAX_FOR_ABQ)
if (_entrySize <= MAX_FOR_ABQ)
return new ArrayBlockingQueue(_maxCached);
return new LinkedBlockingQueue(_maxCached);
}