private class LruAdaptiveBlockCache.BlockBucket extends Object implements Comparable<LruAdaptiveBlockCache.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(LruAdaptiveBlockCache.BlockBucket that) |
boolean |
equals(Object that) |
long |
free(long toFree) |
int |
hashCode() |
long |
overflow() |
String |
toString() |
long |
totalSize() |
private final LruCachedBlockQueue queue
private long totalSize
private final 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(LruAdaptiveBlockCache.BlockBucket that)
compareTo
in interface Comparable<LruAdaptiveBlockCache.BlockBucket>
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.