public class Fluency
extends java.lang.Object
implements java.io.Flushable, java.io.Closeable
| Constructor and Description |
|---|
Fluency(Buffer buffer,
Flusher flusher) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBackupFiles() |
void |
close() |
void |
emit(java.lang.String tag,
byte[] mapValue,
int offset,
int len) |
void |
emit(java.lang.String tag,
java.nio.ByteBuffer mapValue) |
void |
emit(java.lang.String tag,
EventTime eventTime,
byte[] mapValue,
int offset,
int len) |
void |
emit(java.lang.String tag,
EventTime eventTime,
java.nio.ByteBuffer mapValue) |
void |
emit(java.lang.String tag,
EventTime eventTime,
java.util.Map<java.lang.String,java.lang.Object> data) |
void |
emit(java.lang.String tag,
long timestamp,
byte[] mapValue,
int offset,
int len) |
void |
emit(java.lang.String tag,
long timestamp,
java.nio.ByteBuffer mapValue) |
void |
emit(java.lang.String tag,
long timestamp,
java.util.Map<java.lang.String,java.lang.Object> data) |
void |
emit(java.lang.String tag,
java.util.Map<java.lang.String,java.lang.Object> data) |
void |
flush() |
long |
getAllocatedBufferSize() |
Buffer |
getBuffer() |
long |
getBufferedDataSize() |
Flusher |
getFlusher() |
boolean |
isTerminated() |
java.lang.String |
toString() |
boolean |
waitUntilAllBufferFlushed(int maxWaitSeconds) |
boolean |
waitUntilFlusherTerminated(int maxWaitSeconds) |
public void emit(java.lang.String tag,
long timestamp,
java.util.Map<java.lang.String,java.lang.Object> data)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
java.util.Map<java.lang.String,java.lang.Object> data)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
EventTime eventTime,
java.util.Map<java.lang.String,java.lang.Object> data)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
long timestamp,
byte[] mapValue,
int offset,
int len)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
byte[] mapValue,
int offset,
int len)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
EventTime eventTime,
byte[] mapValue,
int offset,
int len)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
long timestamp,
java.nio.ByteBuffer mapValue)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
java.nio.ByteBuffer mapValue)
throws java.io.IOException
java.io.IOExceptionpublic void emit(java.lang.String tag,
EventTime eventTime,
java.nio.ByteBuffer mapValue)
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void clearBackupFiles()
public long getAllocatedBufferSize()
public long getBufferedDataSize()
public boolean isTerminated()
public boolean waitUntilAllBufferFlushed(int maxWaitSeconds)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean waitUntilFlusherTerminated(int maxWaitSeconds)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic Buffer getBuffer()
public Flusher getFlusher()
public java.lang.String toString()
toString in class java.lang.Object