public interface ChangeRecordWriter extends Closeable, Flushable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this change record writer, flushing it first.
|
void |
flush()
Flushes this change record writer so that any buffered data is written
immediately to underlying stream, flushing the stream if it is also
Flushable . |
ChangeRecordWriter |
writeChangeRecord(AddRequest change)
Writes an
Add change record. |
ChangeRecordWriter |
writeChangeRecord(ChangeRecord change)
Writes a change record.
|
ChangeRecordWriter |
writeChangeRecord(DeleteRequest change)
Writes a
Delete change record. |
ChangeRecordWriter |
writeChangeRecord(ModifyDnRequest change)
Writes a
ModifyDN change record. |
ChangeRecordWriter |
writeChangeRecord(ModifyRequest change)
Writes a
Modify change record. |
ChangeRecordWriter |
writeComment(CharSequence comment)
Writes a comment.
|
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
- If an unexpected IO error occurred while closing.void flush() throws IOException
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.
flush
in interface Flushable
IOException
- If an unexpected IO error occurred while flushing.ChangeRecordWriter writeChangeRecord(AddRequest change) throws IOException
Add
change record.change
- The AddRequest
to be written as an Add
change
record.IOException
- If an unexpected IO error occurred while writing the change
record.NullPointerException
- If change
was null
.ChangeRecordWriter writeChangeRecord(ChangeRecord change) throws IOException
change
- The ChangeRecord
to be written.IOException
- If an unexpected IO error occurred while writing the change
record.NullPointerException
- If change
was null
.ChangeRecordWriter writeChangeRecord(DeleteRequest change) throws IOException
Delete
change record.change
- The DeleteRequest
to be written as an Delete
change record.IOException
- If an unexpected IO error occurred while writing the change
record.NullPointerException
- If change
was null
.ChangeRecordWriter writeChangeRecord(ModifyDnRequest change) throws IOException
ModifyDN
change record.change
- The ModifyDNRequest
to be written as an
ModifyDN
change record.IOException
- If an unexpected IO error occurred while writing the change
record.NullPointerException
- If change
was null
.ChangeRecordWriter writeChangeRecord(ModifyRequest change) throws IOException
Modify
change record.change
- The ModifyRequest
to be written as an Modify
change record.IOException
- If an unexpected IO error occurred while writing the change
record.NullPointerException
- If change
was null
.ChangeRecordWriter writeComment(CharSequence comment) throws IOException
comment
- The CharSequence
to be written as a comment.IOException
- If an unexpected IO error occurred while writing the comment.NullPointerException
- If comment
was null
.Copyright © 2010-2018, ForgeRock All Rights Reserved.