private class BucketCache.BucketEntryGroup extends Object implements Comparable<BucketCache.BucketEntryGroup>
Modifier and Type | Field and Description |
---|---|
private long |
bucketSize |
private CachedEntryQueue |
queue |
private long |
totalSize |
Constructor and Description |
---|
BucketCache.BucketEntryGroup(long bytesToFree,
long blockSize,
long bucketSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(Map.Entry<BlockCacheKey,BucketCache.BucketEntry> block) |
int |
compareTo(BucketCache.BucketEntryGroup that) |
boolean |
equals(Object that) |
long |
free(long toFree) |
long |
overflow() |
long |
totalSize() |
private CachedEntryQueue queue
private long totalSize
private long bucketSize
public BucketCache.BucketEntryGroup(long bytesToFree, long blockSize, long bucketSize)
public void add(Map.Entry<BlockCacheKey,BucketCache.BucketEntry> block)
public long free(long toFree)
public long overflow()
public long totalSize()
public int compareTo(BucketCache.BucketEntryGroup that)
compareTo
in interface Comparable<BucketCache.BucketEntryGroup>
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.