Interface TableLogger

All Known Implementing Classes:
MemoryTableLogger, TableLoggerImpl2

public interface TableLogger
All generated TableLoggers implement this interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Row.Flags
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the logger and any writer in use.
    void
    init(TableWriter tableWriter, int queueSize)
     
    boolean
     
    void
    Write all enqueued elements to the TableWriter and prevent further writes.
  • Field Details

    • DEFAULT_INTRADAY_LOGGER_FLAGS

      static final Row.Flags DEFAULT_INTRADAY_LOGGER_FLAGS
  • Method Details

    • init

      void init(TableWriter tableWriter, int queueSize) throws IOException
      Throws:
      IOException
    • isClosed

      boolean isClosed()
    • close

      void close() throws IOException
      Close the logger and any writer in use. Users should quiesce all logging threads and invoke shutdown() first in order to guarantee that all pending rows have been written to storage.
      Throws:
      IOException - if an error occurred closing the logger.
    • shutdown

      void shutdown()
      Write all enqueued elements to the TableWriter and prevent further writes. This should be invoked before close(). This must not be invoked if any threads might still try to log additional items.