Constructors visibility changed to protected. #71

pull/99/head
Nikita 10 years ago
parent babc2f0177
commit 25698103c8

@ -33,7 +33,7 @@ import com.lambdaworks.redis.RedisConnection;
*/ */
public class RedissonAtomicLong extends RedissonExpirable implements RAtomicLong { public class RedissonAtomicLong extends RedissonExpirable implements RAtomicLong {
RedissonAtomicLong(ConnectionManager connectionManager, String name) { protected RedissonAtomicLong(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
init(); init();

@ -28,7 +28,7 @@ import com.lambdaworks.redis.RedisAsyncConnection;
public class RedissonBucket<V> extends RedissonExpirable implements RBucket<V> { public class RedissonBucket<V> extends RedissonExpirable implements RBucket<V> {
RedissonBucket(ConnectionManager connectionManager, String name) { protected RedissonBucket(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

@ -52,7 +52,7 @@ public class RedissonCountDownLatch extends RedissonObject implements RCountDown
private final UUID id; private final UUID id;
RedissonCountDownLatch(ConnectionManager connectionManager, String name, UUID id) { protected RedissonCountDownLatch(ConnectionManager connectionManager, String name, UUID id) {
super(connectionManager, name); super(connectionManager, name);
this.id = id; this.id = id;
} }

@ -37,7 +37,7 @@ import com.lambdaworks.redis.RedisAsyncConnection;
*/ */
public class RedissonDeque<V> extends RedissonQueue<V> implements RDeque<V> { public class RedissonDeque<V> extends RedissonQueue<V> implements RDeque<V> {
RedissonDeque(ConnectionManager connectionManager, String name) { protected RedissonDeque(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

@ -27,7 +27,7 @@ import com.lambdaworks.redis.RedisAsyncConnection;
public class RedissonHyperLogLog<V> extends RedissonObject implements RHyperLogLog<V> { public class RedissonHyperLogLog<V> extends RedissonObject implements RHyperLogLog<V> {
RedissonHyperLogLog(ConnectionManager connectionManager, String name) { protected RedissonHyperLogLog(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

@ -44,7 +44,7 @@ public class RedissonList<V> extends RedissonExpirable implements RList<V> {
private int batchSize = 50; private int batchSize = 50;
RedissonList(ConnectionManager connectionManager, String name) { protected RedissonList(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

@ -113,7 +113,7 @@ public class RedissonLock extends RedissonObject implements RLock {
private static final ConcurrentMap<String, RedissonLockEntry> ENTRIES = new ConcurrentHashMap<String, RedissonLockEntry>(); private static final ConcurrentMap<String, RedissonLockEntry> ENTRIES = new ConcurrentHashMap<String, RedissonLockEntry>();
RedissonLock(ConnectionManager connectionManager, String name, UUID id) { protected RedissonLock(ConnectionManager connectionManager, String name, UUID id) {
super(connectionManager, name); super(connectionManager, name);
this.id = id; this.id = id;
} }
@ -131,6 +131,7 @@ public class RedissonLock extends RedissonObject implements RLock {
if (newEntry.isFree() if (newEntry.isFree()
&& ENTRIES.remove(getEntryName(), newEntry)) { && ENTRIES.remove(getEntryName(), newEntry)) {
synchronized (ENTRIES) { synchronized (ENTRIES) {
// maybe added during subscription
if (!ENTRIES.containsKey(getEntryName())) { if (!ENTRIES.containsKey(getEntryName())) {
connectionManager.unsubscribe(getChannelName()); connectionManager.unsubscribe(getChannelName());
} }

@ -51,7 +51,7 @@ import com.lambdaworks.redis.output.MapScanResult;
//TODO implement watching by keys instead of map name //TODO implement watching by keys instead of map name
public class RedissonMap<K, V> extends RedissonExpirable implements RMap<K, V> { public class RedissonMap<K, V> extends RedissonExpirable implements RMap<K, V> {
RedissonMap(ConnectionManager connectionManager, String name) { protected RedissonMap(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

@ -34,7 +34,7 @@ import com.lambdaworks.redis.RedisAsyncConnection;
*/ */
public class RedissonQueue<V> extends RedissonList<V> implements RQueue<V> { public class RedissonQueue<V> extends RedissonList<V> implements RQueue<V> {
RedissonQueue(ConnectionManager connectionManager, String name) { protected RedissonQueue(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

@ -41,7 +41,7 @@ import com.lambdaworks.redis.output.ListScanResult;
*/ */
public class RedissonSet<V> extends RedissonExpirable implements RSet<V> { public class RedissonSet<V> extends RedissonExpirable implements RSet<V> {
RedissonSet(ConnectionManager connectionManager, String name) { protected RedissonSet(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

@ -92,7 +92,7 @@ public class RedissonSortedSet<V> extends RedissonObject implements RSortedSet<V
private Comparator<? super V> comparator = NaturalComparator.NATURAL_ORDER; private Comparator<? super V> comparator = NaturalComparator.NATURAL_ORDER;
RedissonSortedSet(ConnectionManager connectionManager, String name) { protected RedissonSortedSet(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
loadComparator(); loadComparator();

@ -34,7 +34,7 @@ import com.lambdaworks.redis.RedisAsyncConnection;
*/ */
public class RedissonTopic<M> extends RedissonObject implements RTopic<M> { public class RedissonTopic<M> extends RedissonObject implements RTopic<M> {
RedissonTopic(ConnectionManager connectionManager, String name) { protected RedissonTopic(ConnectionManager connectionManager, String name) {
super(connectionManager, name); super(connectionManager, name);
} }

Loading…
Cancel
Save