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 |
---|
BlockBucket(String name,
long bytesToFree,
long blockSize,
long bucketSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(LruCachedBlock block) |
int |
compareTo(LruBlockCache.BlockBucket that) |
boolean |
equals(Object that) |
long |
free(long toFree) |
int |
hashCode() |
long |
overflow() |
String |
toString() |
long |
totalSize() |
private LruCachedBlockQueue queue
private long totalSize
private long bucketSize
public 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.