public class SegmentWriteQueue extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
SegmentWriteQueue.SegmentConsumeException |
static interface |
SegmentWriteQueue.SegmentConsumer |
| Modifier and Type | Field and Description |
|---|---|
static int |
THREADS |
| Constructor and Description |
|---|
SegmentWriteQueue(SegmentWriteQueue.SegmentConsumer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToQueue(RemoteSegmentArchiveEntry indexEntry,
byte[] data,
int offset,
int size) |
void |
close() |
void |
flush() |
boolean |
isEmpty() |
SegmentWriteAction |
read(UUID id) |
public SegmentWriteQueue(SegmentWriteQueue.SegmentConsumer writer)
public void addToQueue(RemoteSegmentArchiveEntry indexEntry, byte[] data, int offset, int size) throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic SegmentWriteAction read(UUID id)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isEmpty()
Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.