class BucketCache.WriterThread extends HasThread
Modifier and Type | Field and Description |
---|---|
private BlockingQueue<BucketCache.RAMQueueEntry> |
inputQueue |
private boolean |
writerEnabled |
Constructor and Description |
---|
BucketCache.WriterThread(BlockingQueue<BucketCache.RAMQueueEntry> queue) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
disableWriter() |
(package private) void |
doDrain(List<BucketCache.RAMQueueEntry> entries)
Flush the entries in ramCache to IOEngine and add bucket entry to backingMap.
|
void |
run() |
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, start
private final BlockingQueue<BucketCache.RAMQueueEntry> inputQueue
private volatile boolean writerEnabled
BucketCache.WriterThread(BlockingQueue<BucketCache.RAMQueueEntry> queue)
void disableWriter()
void doDrain(List<BucketCache.RAMQueueEntry> entries) throws InterruptedException
entries
- Presumes list passed in here will be processed by this invocation only. No
interference expected.InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.