From 953518994bcf57065afc7b9d8784eb0f0b922048 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 02 Jul 2013 10:36:21 +0000
Subject: [PATCH] ECLSearchOperation.java: Code cleanup. Used StaticUtil.close()
---
opends/src/server/org/opends/server/replication/common/ExternalChangeLogSession.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/common/ExternalChangeLogSession.java b/opends/src/server/org/opends/server/replication/common/ExternalChangeLogSession.java
index 3cf86f5..71c206f 100644
--- a/opends/src/server/org/opends/server/replication/common/ExternalChangeLogSession.java
+++ b/opends/src/server/org/opends/server/replication/common/ExternalChangeLogSession.java
@@ -23,9 +23,12 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
+ * Portions Copyright 2013 ForgeRock AS
*/
package org.opends.server.replication.common;
+import java.io.Closeable;
+
import org.opends.server.replication.protocol.ECLUpdateMsg;
import org.opends.server.types.DirectoryException;
@@ -33,21 +36,19 @@
* This interface defines a session used to search the external changelog
* in the Directory Server.
*/
-public interface ExternalChangeLogSession
+public interface ExternalChangeLogSession extends Closeable
{
/**
* Returns the next message available for the ECL (blocking).
* @return the next available message from the ECL.
* @throws DirectoryException When an error occurs.
*/
- public abstract ECLUpdateMsg getNextUpdate()
- throws DirectoryException;
+ ECLUpdateMsg getNextUpdate() throws DirectoryException;
/**
* Closes the session.
- * @throws DirectoryException when needed.
*/
- public abstract void close()
- throws DirectoryException;
+ @Override
+ void close();
}
--
Gitblit v1.10.0