Interface ChangeRecordWriter

    • Method Detail

      • close

        void close()
            throws IOException
        Closes this change record writer, flushing it first. Closing a previously closed change record writer has no effect.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Throws:
        IOException - If an unexpected IO error occurred while closing.
      • flush

        void flush()
            throws IOException
        Flushes this change record writer so that any buffered data is written immediately to underlying stream, flushing the stream if it is also Flushable.

        If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.

        Specified by:
        flush in interface Flushable
        Throws:
        IOException - If an unexpected IO error occurred while flushing.
      • writeChangeRecord

        ChangeRecordWriter writeChangeRecord​(AddRequest change)
                                      throws IOException
        Writes an Add change record.
        Parameters:
        change - The AddRequest to be written as an Add change record.
        Returns:
        A reference to this change record writer.
        Throws:
        IOException - If an unexpected IO error occurred while writing the change record.
        NullPointerException - If change was null.
      • writeChangeRecord

        ChangeRecordWriter writeChangeRecord​(ChangeRecord change)
                                      throws IOException
        Writes a change record.
        Parameters:
        change - The ChangeRecord to be written.
        Returns:
        A reference to this change record writer.
        Throws:
        IOException - If an unexpected IO error occurred while writing the change record.
        NullPointerException - If change was null.
      • writeChangeRecord

        ChangeRecordWriter writeChangeRecord​(DeleteRequest change)
                                      throws IOException
        Writes a Delete change record.
        Parameters:
        change - The DeleteRequest to be written as an Delete change record.
        Returns:
        A reference to this change record writer.
        Throws:
        IOException - If an unexpected IO error occurred while writing the change record.
        NullPointerException - If change was null.
      • writeChangeRecord

        ChangeRecordWriter writeChangeRecord​(ModifyDnRequest change)
                                      throws IOException
        Writes a ModifyDN change record.
        Parameters:
        change - The ModifyDNRequest to be written as an ModifyDN change record.
        Returns:
        A reference to this change record writer.
        Throws:
        IOException - If an unexpected IO error occurred while writing the change record.
        NullPointerException - If change was null.
      • writeChangeRecord

        ChangeRecordWriter writeChangeRecord​(ModifyRequest change)
                                      throws IOException
        Writes a Modify change record.
        Parameters:
        change - The ModifyRequest to be written as an Modify change record.
        Returns:
        A reference to this change record writer.
        Throws:
        IOException - If an unexpected IO error occurred while writing the change record.
        NullPointerException - If change was null.