Class Fluency

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class Fluency
    extends java.lang.Object
    implements java.io.Flushable, java.io.Closeable
    • Constructor Summary

      Constructors 
      Constructor Description
      Fluency​(Buffer buffer, Flusher flusher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearBackupFiles()  
      void close()  
      void emit​(java.lang.String tag, byte[] mapValue, int offset, int len)  
      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.nio.ByteBuffer mapValue)  
      void emit​(java.lang.String tag, java.util.Map<java.lang.String,​java.lang.Object> data)  
      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 flush()  
      long getAllocatedBufferSize()  
      Buffer getBuffer()  
      long getBufferedDataSize()  
      Flusher getFlusher()  
      boolean isTerminated()  
      java.lang.String toString()  
      boolean waitUntilAllBufferFlushed​(int maxWaitSeconds)  
      boolean waitUntilFlusherTerminated​(int maxWaitSeconds)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • emit

        public void emit​(java.lang.String tag,
                         long timestamp,
                         java.util.Map<java.lang.String,​java.lang.Object> data)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         java.util.Map<java.lang.String,​java.lang.Object> data)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         EventTime eventTime,
                         java.util.Map<java.lang.String,​java.lang.Object> data)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         long timestamp,
                         byte[] mapValue,
                         int offset,
                         int len)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         byte[] mapValue,
                         int offset,
                         int len)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         EventTime eventTime,
                         byte[] mapValue,
                         int offset,
                         int len)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         long timestamp,
                         java.nio.ByteBuffer mapValue)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         java.nio.ByteBuffer mapValue)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • emit

        public void emit​(java.lang.String tag,
                         EventTime eventTime,
                         java.nio.ByteBuffer mapValue)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • clearBackupFiles

        public void clearBackupFiles()
      • getAllocatedBufferSize

        public long getAllocatedBufferSize()
      • getBufferedDataSize

        public long getBufferedDataSize()
      • isTerminated

        public boolean isTerminated()
      • waitUntilAllBufferFlushed

        public boolean waitUntilAllBufferFlushed​(int maxWaitSeconds)
                                          throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • waitUntilFlusherTerminated

        public boolean waitUntilFlusherTerminated​(int maxWaitSeconds)
                                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • getBuffer

        public Buffer getBuffer()
      • getFlusher

        public Flusher getFlusher()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object