clarify collection behavior with pipelined connection

REDIS-100
This commit is contained in:
Costin Leau
2012-08-09 13:46:58 +03:00
parent 28d0ab07ac
commit c9ea16bee6
3 changed files with 9 additions and 5 deletions

View File

@@ -26,6 +26,9 @@ import org.springframework.data.redis.core.RedisOperations;
* Base implementation for {@link RedisCollection}.
* Provides a skeletal implementation.
*
* Note that the collection support works only with normal, non-pipeline/multi-exec connections as it requires
* a reply to be sent right away.
*
* @author Costin Leau
*/
public abstract class AbstractRedisCollection<E> extends AbstractCollection<E> implements RedisCollection<E> {
@@ -84,11 +87,6 @@ public abstract class AbstractRedisCollection<E> extends AbstractCollection<E> i
return modified;
}
public boolean retainAll(Collection<?> c) {
throw new UnsupportedOperationException();
}
public boolean equals(Object o) {
if (o == this)
return true;

View File

@@ -28,6 +28,9 @@ import org.springframework.data.redis.core.RedisOperations;
/**
* Default implementation for {@link RedisSet}.
*
* Note that the collection support works only with normal, non-pipeline/multi-exec connections as it requires
* a reply to be sent right away.
*
* @author Costin Leau
*/
public class DefaultRedisSet<E> extends AbstractRedisCollection<E> implements RedisSet<E> {

View File

@@ -28,6 +28,9 @@ import org.springframework.data.redis.core.ZSetOperations.TypedTuple;
/**
* Default implementation for {@link RedisZSet}.
*
* Note that the collection support works only with normal, non-pipeline/multi-exec connections as it requires
* a reply to be sent right away.
*
* @author Costin Leau
*/
public class DefaultRedisZSet<E> extends AbstractRedisCollection<E> implements RedisZSet<E> {