Package org.komamitsu.fluency
Class Fluency
java.lang.Object
org.komamitsu.fluency.Fluency
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidvoidvoidemit(String tag, long timestamp, ByteBuffer mapValue) voidvoidemit(String tag, ByteBuffer mapValue) voidvoidvoidemit(String tag, EventTime eventTime, ByteBuffer mapValue) voidvoidflush()longlongbooleantoString()booleanwaitUntilAllBufferFlushed(int maxWaitSeconds) booleanwaitUntilFlusherTerminated(int maxWaitSeconds)
-
Constructor Details
-
Fluency
-
-
Method Details
-
emit
- Throws:
IOException
-
emit
- Throws:
IOException
-
emit
- Throws:
IOException
-
emit
public void emit(String tag, long timestamp, byte[] mapValue, int offset, int len) throws IOException - Throws:
IOException
-
emit
- Throws:
IOException
-
emit
public void emit(String tag, EventTime eventTime, byte[] mapValue, int offset, int len) throws IOException - Throws:
IOException
-
emit
- Throws:
IOException
-
emit
- Throws:
IOException
-
emit
- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
clearBackupFiles
public void clearBackupFiles() -
getAllocatedBufferSize
public long getAllocatedBufferSize() -
getBufferedDataSize
public long getBufferedDataSize() -
isTerminated
public boolean isTerminated() -
waitUntilAllBufferFlushed
- Throws:
InterruptedException
-
waitUntilFlusherTerminated
- Throws:
InterruptedException
-
getBuffer
-
getFlusher
-
toString
-