* SimpleByteCache: Fix ABQ/LBQ selection

This commit is contained in:
zzz committed 2012-10-02 12:34:29 +00:00
1 parent a71e8fae00
commit 466778875d
1 file changed
+1 -1
@@ -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);
}