Class JournalQueue

    • Constructor Detail

      • JournalQueue

        public JournalQueue()
    • Method Detail

      • getFirst

        public AbstractJournalOperation getFirst()
        Return the first operation in queue
        Returns:
        the first operation in queue
      • addLast

        public void addLast​(AbstractJournalOperation op)
        Append an operation at the end of the queue
        Parameters:
        op - a journal operation
      • migrateTo

        public void migrateTo​(JournalQueue otherQueue)
        Migrate all operations to the given target queue
        Parameters:
        otherQueue - target journal queue
      • size

        public int size()
        Get the queue size
        Returns:
        number of operations in queue