Class ConnectionEntryWriter

java.lang.Object
org.forgerock.opendj.ldif.ConnectionEntryWriter
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, EntryWriter

public final class ConnectionEntryWriter extends Object implements EntryWriter
A ConnectionEntryWriter is a bridge from Connections to EntryWriters. A connection entry writer writes entries by sending Add requests to an underlying connection.

All Add requests are performed synchronously, blocking until an Add result is received. If an Add result indicates that an Add request has failed for some reason then the error result is propagated to the caller using an LdapException.

Note: comments are not supported by connection change record writers. Attempts to write comments will be ignored.

  • Constructor Details

    • ConnectionEntryWriter

      public ConnectionEntryWriter(Connection connection)
      Creates a new connection entry writer whose destination is the provided connection.
      Parameters:
      connection - The connection to use.
      Throws:
      NullPointerException - If connection was null.
  • Method Details