private class LruBlockCache.BlockBucket extends Object implements Comparable<LruBlockCache.BlockBucket>
Modifier and Type | Field and Description |
---|---|
private long |
bucketSize |
private String |
name |
private LruCachedBlockQueue |
queue |
private long |
totalSize |
Constructor and Description |
---|
LruBlockCache.BlockBucket(String name,
long bytesToFree,
long blockSize,
long bucketSize) |
private final String name
private LruCachedBlockQueue queue
private long totalSize
private long bucketSize
public LruBlockCache.BlockBucket(String name, long bytesToFree, long blockSize, long bucketSize)
public void add(LruCachedBlock block)
public long free(long toFree)
public long overflow()
public long totalSize()
public int compareTo(LruBlockCache.BlockBucket that)
compareTo
in interface Comparable<LruBlockCache.BlockBucket>
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.