Class Flusher

java.lang.Object
org.komamitsu.fluency.flusher.Flusher
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class Flusher extends Object implements Flushable, Closeable
  • Field Details

    • buffer

      protected final Buffer buffer
    • ingester

      protected final Ingester ingester
  • Constructor Details

  • Method Details

    • getBuffer

      public Buffer getBuffer()
    • flush

      public void flush()
      Specified by:
      flush in interface Flushable
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • isTerminated

      public boolean isTerminated()
    • getIngester

      public Ingester getIngester()
    • getFlushIntervalMillis

      @Deprecated public int getFlushIntervalMillis()
      Deprecated.
      As of release 2.4.0, replaced by getFlushAttemptIntervalMillis()
    • getFlushAttemptIntervalMillis

      public int getFlushAttemptIntervalMillis()
    • getWaitUntilBufferFlushed

      public int getWaitUntilBufferFlushed()
    • getWaitUntilTerminated

      public int getWaitUntilTerminated()
    • toString

      public String toString()
      Overrides:
      toString in class Object