public class PackedForwardBuffer extends Buffer
| Modifier and Type | Class and Description |
|---|---|
static class |
PackedForwardBuffer.Config |
Buffer.Instantiator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORMAT_TYPE |
CHARSET, fileBackup, objectMapper| Modifier | Constructor and Description |
|---|---|
protected |
PackedForwardBuffer(PackedForwardBuffer.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(java.lang.String tag,
EventTime timestamp,
java.util.Map<java.lang.String,java.lang.Object> data) |
void |
append(java.lang.String tag,
long timestamp,
java.util.Map<java.lang.String,java.lang.Object> data) |
void |
appendMessagePackMapValue(java.lang.String tag,
EventTime timestamp,
byte[] mapValue,
int offset,
int len) |
void |
appendMessagePackMapValue(java.lang.String tag,
EventTime timestamp,
java.nio.ByteBuffer mapValue) |
void |
appendMessagePackMapValue(java.lang.String tag,
long timestamp,
byte[] mapValue,
int offset,
int len) |
void |
appendMessagePackMapValue(java.lang.String tag,
long timestamp,
java.nio.ByteBuffer mapValue) |
java.lang.String |
bufferFormatType() |
protected void |
closeInternal() |
void |
flushInternal(Sender sender,
boolean force) |
long |
getAllocatedSize() |
long |
getBufferedDataSize() |
float |
getChunkExpandRatio() |
int |
getChunkInitialSize() |
int |
getChunkRetentionSize() |
int |
getChunkRetentionTimeMillis() |
boolean |
getJvmHeapBufferMode() |
protected void |
loadBufferFromFile(java.util.List<java.lang.String> params,
java.nio.channels.FileChannel channel) |
protected void |
saveAllBuffersToFile() |
java.lang.String |
toString() |
clearBackupFiles, close, flush, getBufferUsage, getFileBackupDir, getFileBackupPrefix, getJacksonModules, getMaxBufferSize, getMaxSize, init, isAckResponseMode, saveBufferpublic static final java.lang.String FORMAT_TYPE
protected PackedForwardBuffer(PackedForwardBuffer.Config config)
protected void loadBufferFromFile(java.util.List<java.lang.String> params,
java.nio.channels.FileChannel channel)
loadBufferFromFile in class Bufferprotected void saveAllBuffersToFile()
throws java.io.IOException
saveAllBuffersToFile in class Bufferjava.io.IOExceptionpublic void append(java.lang.String tag,
long timestamp,
java.util.Map<java.lang.String,java.lang.Object> data)
throws java.io.IOException
public void append(java.lang.String tag,
EventTime timestamp,
java.util.Map<java.lang.String,java.lang.Object> data)
throws java.io.IOException
public void appendMessagePackMapValue(java.lang.String tag,
long timestamp,
byte[] mapValue,
int offset,
int len)
throws java.io.IOException
appendMessagePackMapValue in class Bufferjava.io.IOExceptionpublic void appendMessagePackMapValue(java.lang.String tag,
EventTime timestamp,
byte[] mapValue,
int offset,
int len)
throws java.io.IOException
appendMessagePackMapValue in class Bufferjava.io.IOExceptionpublic void appendMessagePackMapValue(java.lang.String tag,
long timestamp,
java.nio.ByteBuffer mapValue)
throws java.io.IOException
appendMessagePackMapValue in class Bufferjava.io.IOExceptionpublic void appendMessagePackMapValue(java.lang.String tag,
EventTime timestamp,
java.nio.ByteBuffer mapValue)
throws java.io.IOException
appendMessagePackMapValue in class Bufferjava.io.IOExceptionpublic java.lang.String bufferFormatType()
bufferFormatType in class Bufferpublic void flushInternal(Sender sender, boolean force) throws java.io.IOException
flushInternal in class Bufferjava.io.IOExceptionprotected void closeInternal()
closeInternal in class Bufferpublic long getAllocatedSize()
getAllocatedSize in class Bufferpublic long getBufferedDataSize()
getBufferedDataSize in class Bufferpublic boolean getJvmHeapBufferMode()
public int getChunkInitialSize()
public float getChunkExpandRatio()
public int getChunkRetentionSize()
public int getChunkRetentionTimeMillis()