Permalink
Browse files

Make queueReconnect protected so subclasses can request reconnects.

In fixing JCBC-53 on the Couchbase Java client, a need to queue
reconnections in some cluster configuration updates was found to be
required.  This change allows that.

Change-Id: I25ce3945b4e5e6527dd680031237be22faed69ee
Reviewed-on: http://review.couchbase.org/16335
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
  • Loading branch information...
1 parent ac6ccd8 commit 87158efd76ab3af2bd03ff4685e1add535ea3ea6 @ingenthr ingenthr committed with mikewied May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/net/spy/memcached/MemcachedConnection.java
@@ -501,7 +501,7 @@ static String dbgBuffer(ByteBuffer b, int size) {
return sb.toString();
}
- private void queueReconnect(MemcachedNode qa) {
+ protected void queueReconnect(MemcachedNode qa) {
if (!shutDown) {
getLogger().warn("Closing, and reopening %s, attempt %d.", qa,
qa.getReconnectCount());

0 comments on commit 87158ef

Please sign in to comment.