@Private
public class EditsDoubleBuffer
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
EditsDoubleBuffer(int defaultBufferSize) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
countBufferedBytes() |
|
int |
countReadyBytes() |
|
int |
countReadyTxns() |
|
void |
flushTo(java.io.OutputStream out) |
Writes the content of the "ready" buffer to the given output stream,
and resets it.
|
long |
getFirstReadyTxId() |
|
boolean |
isFlushed() |
|
void |
setReadyToFlush() |
|
boolean |
shouldForceSync() |
|
void |
writeOp(FSEditLogOp op,
int logVersion) |
|
void |
writeRaw(byte[] bytes,
int offset,
int length) |
public void writeOp(FSEditLogOp op, int logVersion) throws java.io.IOException
java.io.IOExceptionpublic void writeRaw(byte[] bytes,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void setReadyToFlush()
public void flushTo(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic boolean shouldForceSync()
public boolean isFlushed()
public int countBufferedBytes()
public long getFirstReadyTxId()
public int countReadyTxns()
public int countReadyBytes()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.