static class BucketCache.RAMQueueEntry extends Object
Modifier and Type | Field and Description |
---|---|
private long |
accessCounter |
private Cacheable |
data |
private boolean |
inMemory |
private BlockCacheKey |
key |
private ByteBuffAllocator.Recycler |
recycler |
Constructor and Description |
---|
RAMQueueEntry(BlockCacheKey bck,
Cacheable data,
long accessCounter,
boolean inMemory,
ByteBuffAllocator.Recycler recycler) |
Modifier and Type | Method and Description |
---|---|
void |
access(long accessCounter) |
private ByteBuffAllocator |
getByteBuffAllocator() |
Cacheable |
getData() |
BlockCacheKey |
getKey() |
BucketEntry |
writeToCache(IOEngine ioEngine,
BucketAllocator alloc,
LongAdder realCacheSize) |
private final BlockCacheKey key
private long accessCounter
private boolean inMemory
private final ByteBuffAllocator.Recycler recycler
RAMQueueEntry(BlockCacheKey bck, Cacheable data, long accessCounter, boolean inMemory, ByteBuffAllocator.Recycler recycler)
public BlockCacheKey getKey()
public void access(long accessCounter)
private ByteBuffAllocator getByteBuffAllocator()
public BucketEntry writeToCache(IOEngine ioEngine, BucketAllocator alloc, LongAdder realCacheSize) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.