Class SegmentWriteQueue

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

    public class SegmentWriteQueue
    extends java.lang.Object
    implements java.io.Closeable
    • Field Detail

      • THREADS

        public static final int THREADS
    • Method Detail

      • addToQueue

        public void addToQueue​(RemoteSegmentArchiveEntry indexEntry,
                               byte[] data,
                               int offset,
                               int size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        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
      • isEmpty

        public boolean isEmpty()