Class AbstractJournalRM.CollectorDaemon.InvokeGCJournalFile

    • Constructor Detail

      • InvokeGCJournalFile

        public InvokeGCJournalFile()
        Construct a Journal File.
    • Method Detail

      • enqueue

        public long enqueue​(Binary bin)
        Enqueue a Binary value to be written to this file, returning a ticket, or return 0L if this file is full and the append has to occur to a new file.
        Specified by:
        enqueue in class AbstractJournalRM.JournalFile
        Parameters:
        bin - the value to append to the journal file
        Returns:
        a ticket if the Binary has successfully been enqueued, or 0L if the file is full
      • dispose

        public void dispose()
        Invoked when all resources owned by the implementer can safely be released.

        Once disposed of the object should no longer be considered to be usable.

        Note the Disposable interface is compatible with try-with-resources which will automatically invoke this method.

        Specified by:
        dispose in interface Disposable
        Specified by:
        dispose in class AbstractJournalRM.JournalFile