DATAREDIS-508 - Polishing.

Update JavaDoc, remove trailing whitespace and skip cluster tests if cluster not available.
This commit is contained in:
Christoph Strobl
2017-07-18 13:05:34 +02:00
parent 12b030b1f7
commit 50551fd182
3 changed files with 43 additions and 10 deletions

View File

@@ -515,7 +515,7 @@ public class LettuceClusterConnection extends LettuceConnection implements Defau
return result;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.redis.connection.lettuce.LettuceConnection#switchToPubSub()
*/

View File

@@ -798,6 +798,11 @@ public class LettuceConnection extends AbstractRedisConnection {
}
}
/**
* {@link #close()} the current connection and open a new pub/sub connection to the Redis server.
*
* @return never {@literal null}.
*/
protected StatefulRedisPubSubConnection<byte[], byte[]> switchToPubSub() {
close();