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