From f2090c0d863b07e3bad8d16a3efddfad6ff77960 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Tue, 08 Oct 2013 14:16:54 +0000
Subject: [PATCH] Fix OPENDJ-346 Consider using java.util.ServiceLoader for loading extensions and requesting transport implementations This a a part of OPENDJ-175 - Decouple OpenDJ LDAP SDK from Grizzly CR-2440
---
opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/TimeoutChecker.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/TimeoutChecker.java b/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/TimeoutChecker.java
index 2ef5df9..2ecdd37 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/TimeoutChecker.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/TimeoutChecker.java
@@ -63,8 +63,8 @@
* The connection set must be safe from CMEs because expiring requests can
* cause the connection to be closed.
*/
- private final Set<LDAPConnection> connections =
- newSetFromMap(new ConcurrentHashMap<LDAPConnection, Boolean>());
+ private final Set<GrizzlyLDAPConnection> connections =
+ newSetFromMap(new ConcurrentHashMap<GrizzlyLDAPConnection, Boolean>());
/**
* Used to signal thread shutdown.
@@ -80,7 +80,7 @@
final long currentTime = System.currentTimeMillis();
long delay = 0;
- for (final LDAPConnection connection : connections) {
+ for (final GrizzlyLDAPConnection connection : connections) {
DEFAULT_LOG.trace("Checking connection {} delay = {}", connection, delay);
// May update the connections set.
@@ -113,12 +113,12 @@
checkerThread.start();
}
- void addConnection(final LDAPConnection connection) {
+ void addConnection(final GrizzlyLDAPConnection connection) {
connections.add(connection);
signal();
}
- void removeConnection(final LDAPConnection connection) {
+ void removeConnection(final GrizzlyLDAPConnection connection) {
connections.remove(connection);
// No need to signal.
}
--
Gitblit v1.10.0