From a54fa3d78b427d7b8278442acbe86ebebcf6c2e7 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 27 Jan 2015 11:31:59 +0000
Subject: [PATCH] OPENDJ-1716 Various PluggableBackend/Storage refactorings Code review: Nicolas Capponi

---
 opendj3-server-dev/src/server/org/opends/server/backends/pluggable/spi/WriteOperation.java |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/spi/WriteOperation.java b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/spi/WriteOperation.java
index e99b1a2..6ba146e 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/spi/WriteOperation.java
+++ b/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;
 }
\ No newline at end of file

--
Gitblit v1.10.0