mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
27.31.2015 a54fa3d78b427d7b8278442acbe86ebebcf6c2e7
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/spi/WriteOperation.java
@@ -21,12 +21,23 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2014 ForgeRock AS
 *      Copyright 2014-2015 ForgeRock AS
 */
package org.opends.server.backends.pluggable.spi;
/**
 * Function performing a write operation.
 */
// @FunctionalInterface
public interface WriteOperation
{
  /**
   * Executes a write operation.
   *
   * @param txn
   *          the write transaction where to execute the write operation
   * @throws Exception
   *           if a problem occurs with the underlying storage engine
   */
  void run(WriteableStorage txn) throws Exception;
}